PHP code work on localhost but not webhotel ($_GET)
- by Mestika
Hi all,
The following code works fine on my WAMP localhost server, but when I try to upload it, to my webhoste, it don't and I'm a bit confused about what's wrong.
The code is:
<?php
if(isset($_GET['menu'])) {
if($_GET['menu'] == 3) {
echo "<!--Gallery Scripts-->\n";
echo gallery();
}
}
?>
The purpose is that if the URL is saying: index.php?menu=3 it will run the function "gallery()" which will load the gallery. I'm doing this "trick" several times to avoid the page to load all my JavaScript and function each time the page loads.
Thanks
Mestika