Jump to content

SQL problem with permalink


ebchost

Recommended Posts

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

Link to comment
https://forums.phpfreaks.com/topic/252161-sql-problem-with-permalink/
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.