daily pastebin goal
76%
SHARE
TWEET

Untitled

a guest Jun 4th, 2017 59 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. ?>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top