MySQL Forums
Forum List  »  PHP

Re: sql Quotes problem
Posted by: Monika
Date: April 28, 2005 06:34AM

You need to quote you variables with single quotes as well (as long as they are strings):

$sql="SELECT MAX(end_time) AS end_time FROM $table WHERE date='$date'"

Monika

Options: ReplyQuote


Subject
Written By
Posted
April 27, 2005 04:00AM
Re: sql Quotes problem
April 28, 2005 06:34AM
April 28, 2005 08:47PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.