Advertisement
Guest User

Untitled

a guest
Jun 4th, 2017
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. <link type="text/css" href="main.css" rel="stylesheet" />
  2.  
  3. <?php
  4.  
  5. //config shit
  6.  
  7. $host='localhost';
  8. $user='root';
  9. $pass='';
  10.  
  11. $con = mysql_connect($host, $user, $pass);
  12.  
  13. if( !$con )
  14. echo "
  15. <div id='content'
  16. <div id='warning'>
  17. Error: " . mysql_error() . "
  18. </div>
  19. </div>";
  20. ;
  21.  
  22. if( $con )
  23.  
  24. mysql_selectdb( "site", $con );
  25.  
  26. $result = mysql_query( "SELECT * FROM list" );
  27.  
  28. while($row = mysql_fetch_array($result))
  29. if($row)
  30. echo "<div id='content'><div id='information'>Debug: MySQL is functional!</div></div>";
  31. ;
  32. ;
  33. ;
  34.  
  35.  
  36.  
  37. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement