daily pastebin goal
30%
SHARE
TWEET

Untitled

a guest Feb 23rd, 2019 48 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2.  $con = mysql_connect("localhost","root","root");
  3.  
  4.      if (!$con)
  5.               {
  6.                die('Could not connect: ' . mysql_error());
  7.               }
  8.  
  9.  mysql_select_db("TwinImage", $con);
  10.  
  11. $T=NID;
  12. $TONE=NID+1;
  13. $TTWO=NID+2;
  14.  
  15. $result = mysql_query("SELECT * FROM testtable WHERE $T=0 AND $TONE=0 AND $TTWO=0");
  16.  
  17.     while($row = mysql_fetch_array($result))
  18.  
  19.     {
  20.         echo ($row['date'] .",". $row['time']  .",". $row['DID']);
  21.         echo "n";
  22.     }
  23.  
  24. mysql_close($con);
  25.  
  26. ?>
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