Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <link type="text/css" href="main.css" rel="stylesheet" />
- <?php
- //config shit
- $host='localhost';
- $user='root';
- $pass='';
- $con = mysql_connect($host, $user, $pass);
- if( !$con )
- echo "
- <div id='content'
- <div id='warning'>
- Error: " . mysql_error() . "
- </div>
- </div>";
- ;
- if( $con )
- mysql_selectdb( "site", $con );
- $result = mysql_query( "SELECT * FROM list" );
- while($row = mysql_fetch_array($result))
- if($row)
- echo "<div id='content'><div id='information'>Debug: MySQL is functional!</div></div>";
- ;
- ;
- ;
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement