Re: [PHP] Problem With mysql_query

2007-09-05 Thread Janet Valade
Brian Welter wrote: I have the following code and it doesn't behave properly but I can't find my error. The code is designed to validate user login. When I pass in an invalid email name to the checkLogin function it returns a result, not FALSE as the documentation describes. I can SELECT * from t

Re: [PHP] Problem With mysql_query

2007-09-05 Thread Stut
Brian Welter wrote: I have the following code and it doesn't behave properly but I can't find my error. The code is designed to validate user login. When I pass in an invalid email name to the checkLogin function it returns a result, not FALSE as the documentation describes. I can SELECT * from t

Re: [PHP] Problem With mysql_query

2007-09-05 Thread Zoltán Németh
2007. 09. 5, szerda keltezéssel 16.31-kor Brian Welter ezt írta: > I have the following code and it doesn't behave properly but I can't find my > error. The code is designed to validate user login. When I pass in an > invalid email name to the checkLogin function it returns a result, not FALSE > as

RE: [PHP] Problem with mysql_query

2002-08-20 Thread Jay Blanchard
[snip] mySQL Error: You have an error in your SQL syntax near ''LIMIT 25,25'' at line 1 with this query: SELECT * FROM dvd_library WHERE genre=BUDGET ORDER BY description ASC LIMIT 25,25 [/snip] Try SELECT * FROM dvd_library WHERE genre = 'BUDGET' ORDER BY description ASC LIMIT 25, 25 Also (I

Re: [PHP] Problem with mysql_query

2002-08-20 Thread Jeff Lewis
Please disregard, it was a silly problem (I was echoing the SQL query and editing that, not the main SQL query). Jeff - Original Message - From: "Jeff Lewis" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, August 20, 2002 3:04 PM Subject: [PHP] Problem with mysql_query mysql_