Hi I have a php code that searches and fetches records from Mysql database, and works fine on mac os x, however when i test it on pc, instead of fetching the data, the page loads my home page. Any ideas please, I am totally confused. Cheers guys.
Does this happen to be your home page? If so make sure there isn't an index.php and an index.html on your server. Some browsers will default to the html and wont display the php version. That's my only guess because php isn't browser based. Php doesn't even see the browser it gets parsed on your server and then spits out html which is then displayed in the browser.
Well, you can first try using the strictly correct PHP code - some computers will handle php shortcuts differently (like <? instead of <?php) <?php echo $_SERVER['PHP_SELF']; ?> PHP: However, what dave said is probably what is getting you.
Hi Thanks for both your help. I have taken both your advise on board but since I am newby, I don't know how to alter my index.php file. Possibility, you were right. Changed to proper syntax echo $_SERVER['PHP_SELF']; Code (markup): and worked just fine, although I know the index.php will come back to bite my backside some time in the future. cheers guys
If you still run into problems you can check out this i found on google: http://www.weberdev.com/get_example-4291.html