Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $con = mysql_connect("localhost","root","root");
- if (!$con)
- {
- die('Could not connect: ' . mysql_error());
- }
- mysql_select_db("TwinImage", $con);
- $T=NID;
- $TONE=NID+1;
- $TTWO=NID+2;
- $result = mysql_query("SELECT * FROM testtable WHERE $T=0 AND $TONE=0 AND $TTWO=0");
- while($row = mysql_fetch_array($result))
- {
- echo ($row['date'] .",". $row['time'] .",". $row['DID']);
- echo "n";
- }
- mysql_close($con);
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement