Jump to content

Query problem(plz help)


cty

Recommended Posts

Error message:


Query failed: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 ')' at line 1



--------------------------------------
Can any one able to edit it in correct form?(*I using PHP5)

----------------------------------------------

$query="select count(*) from cart where cookieId ='GetCartId()'
and bookid = '$bookid'";
Link to comment
https://forums.phpfreaks.com/topic/31107-query-problemplz-help/
Share on other sites

also, you could try using phpmyadmin to check the code for specific issues on your server...

[quote author=cty link=topic=119115.msg487342#msg487342 date=1166454676]
Error message:


Query failed: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 ')' at line 1



--------------------------------------
Can any one able to edit it in correct form?(*I using PHP5)

----------------------------------------------

$query="select count(*) from cart where cookieId ='GetCartId()'
and bookid = '$bookid'";
[/quote]
Link to comment
https://forums.phpfreaks.com/topic/31107-query-problemplz-help/#findComment-143634
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.