SHARE
TWEET

Untitled

a guest Jul 20th, 2017 57 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. $dbhost = 'localhost';
  3. $dbuser = 'evohans_facebook';
  4. $dbpass = 'mother123';
  5.  
  6. $conn = mysql_connect($dbhost, $dbuser, $dbpass) or die                      ('Error connecting to mysql');
  7.  
  8. $dbname = 'evohans_app1';
  9. mysql_select_db($dbname)  or die
  10. ('Error choosing table');
  11.  
  12. $rating="G";
  13.  
  14. $query = "SELECT * FROM mad_user WHERE rating = '$rating' ";     
  15. $result = mysql_query($query) or die(mysql_error());
  16. while($row = mysql_fetch_array($result)) {
  17. $nouns=$row['noun'];
  18. $rand_nouns=array_rand($nouns, 1);
  19.  
  20. }
  21.  
  22.  
  23.  
  24. ?>
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