Advertisement
Guest User

Untitled

a guest
Feb 23rd, 2019
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  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. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement