Banner

Sponsor

Login


Welcome Back!
Guest
Guest

Register

Lost your password?

119 users online



[mysql] select more or equal to??

[mysql] select more or equal to??

Currently viewing this thread: 1 (0 members and 1 guests)


Chippo

Chippo

Status: Offline!

[mysql] select more or equal to??

Hi
what i want to do is select rows from my mysql where the tme column is more than or equal to $t.
I tried using ....
$t = time() - 520; if ne1 was wondering

Quote:

SELECT * FROM tablename WHERE tme >= $t ORDER tme DESC


but I get this error ....

Quote:

You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '>= 1074039255 ORDER tme DESC' at line 1

DA_Master

DA_Master

Status: Offline!

Try looking at the documentation online at www.mysql.com

Shinji1

Shinji1

computer-freak
Status: Offline!

perhaps if you wrote your query like this

PHP:

<?php
SELECT 
FROM tablename WHERE tme >= $t ORDER BY tme DESC 
?>

the clause must be "ORDER BY".

___________________

http://www.animexclusive.com/forum_uploads/post-5-1072187870.jpg

Quick Jump:

Main Navigation


Site & Graphic Design by Aeon Tan
Developed by Jeremie Pelletier & Scott Roach


NeverAPI generated this page in 0.0073 seconds.