cty Posted December 18, 2006 Share Posted December 18, 2006 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 More sharing options...
AV1611 Posted December 18, 2006 Share Posted December 18, 2006 Just a wild guess, but maybe this?$GCI=GetCartId();$query="select count(*) from cart where cookieId ='$GCI'and bookid = '$bookid'"; Link to comment https://forums.phpfreaks.com/topic/31107-query-problemplz-help/#findComment-143633 Share on other sites More sharing options...
tracy Posted December 18, 2006 Share Posted December 18, 2006 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.