below is the correct version of your code fragment:
... you need to add " to the start and " to the end of the value what you compare ...PHP Code:if($_SERVER["REQUEST_URI"] == "$mosConfig_live_site/index.php?option=com_virtuemart&Itemid=26"){
Hello everybody, i need a little help if you are my man. I keep on trying to create an if else relation in php, but all i get is a syntax errorThis is what i triedParse error: syntax error, unexpected '=' in
I think for some reason the script is unable to compare the two URLs, but have no idea why not.PHP Code:if ( $_SERVER["REQUEST_URI"] == $mosConfig_live_site/index.php?option=com_virtuemart&Itemid=26){
Your help is highly appreciated!
Thanks anyhow
█Time may come when you will need a UK e-commerce software
█ecommerce testimonials keresőoptimalizálás
below is the correct version of your code fragment:
... you need to add " to the start and " to the end of the value what you compare ...PHP Code:if($_SERVER["REQUEST_URI"] == "$mosConfig_live_site/index.php?option=com_virtuemart&Itemid=26"){
complete debug block:
PHP Code:if($_SERVER["REQUEST_URI"] == "$mosConfig_live_site/index.php?option=com_virtuemart&Itemid=26"){ print "hello 1"; }
else {print "hello 2";}
Misi, you are a magician, thank you very much i started to hack with parse_str ahhh...
Rep added![]()
█Time may come when you will need a UK e-commerce software
█ecommerce testimonials keresőoptimalizálás
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks