i am java
Active Member
- Joined
- Apr 9, 2008
- Sythe Gold
- 0
- Messages
- 231
OK, so a friend of mine was bored, so I told him to write me a small, simple script. For some reason, the script doesn't seem to work still. I honestly can't figure it out, and we are both pretty good PHP programmers.
Now, for some reason, it doesn't just select the times from 5 seconds ago (which is the time I am using to simply test the script ATM), it selects everything in the table.
Anyone got any ideas?
Code:
$sql="SELECT * FROM `test` WHERE `testm`-".date("U")."<5 ORDER BY `testm` DESC";
Now, for some reason, it doesn't just select the times from 5 seconds ago (which is the time I am using to simply test the script ATM), it selects everything in the table.
Anyone got any ideas?

