ebchost Posted November 30, 2011 Share Posted November 30, 2011 when i paste this code in mysql in phpmyadmin, code work ok, by in php i have problem code is: Using php Syntax Highlighting $rss_news_item = mysql_query("SELECT * FROM `rss_sajtovi`,`rss_vesti` WHERE `rss_sajtovi`.`ID_SAJTA` = `rss_vesti`.`SAJT_ID` AND `permalink` = '$permalink' ") or die(mysql_error()); Erorr message is: 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 $permalink is zvezda-prosinecki-nije-postao-tim-menadzer-ta-funkcija-ne-postoji PS: I use this for SEO FRENDLY URL http://sportskevesti.co/index.php?opcija=vest&permalink=zvezda-prosinecki-nije-postao-tim-menadzer-ta-funkcija-ne-postoji Quote Link to comment Share on other sites More sharing options...
requinix Posted November 30, 2011 Share Posted November 30, 2011 You sure it's that query causing the problem? It looks fine... Quote Link to comment Share on other sites More sharing options...
ebchost Posted November 30, 2011 Author Share Posted November 30, 2011 You sure it's that query causing the problem? It looks fine... yes, thanks i have update queri without ' ' tag around string. now is ok Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.