SHARE
TWEET

Untitled

a guest May 21st, 2017 46 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. header("Content-type: text/plain");
  3. error_reporting(E_ALL | E_STRICT);
  4.  
  5. $server = "[REDACTED]";
  6. $user = "[REDACTED]";
  7. $pass = "[REDACTED]";
  8. $db = "[REDACTED]";
  9. $connection = mysql_connect($server, $user, $pass)
  10. or die ("Could not connect to server ... \n" . mysql_error ());
  11. mysql_select_db($db)
  12. or die ("Could not connect to database ... \n" . mysql_error ());
  13.  
  14. $sql = 'SELECT * FROM `buglist` WHERE 1 LIMIT 0, 30 ';
  15.  
  16. $data = mysql_query($sql);
  17. while(($row = mysql_fetch_assoc($data)) !== false)
  18. {
  19.     print_r($row['id']);
  20. }
  21.  
  22. //$row['id']
  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