Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations MikeeOK on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

sql statement in php

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
I have this select statement that I am writing through php but it is not executing. I think it is probably a php specific syntax error because when i write it in the mysql monitor it works fine. Does anybody now what is wrong with this select statement? Thanks in advance as I am new to all this stuff.

$query = "select* from orders
order by orderid desc
limit 0,1";
 
Try putting a space between select and *.
Else, post the error message, please mcvdmvs
"It never hurts to help" -- Eek the Cat
 
post your code if in doubt, it really does help :) ***************************************
Party on, dudes!
[cannon]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top