View Full Version : hosting php/mysql project

06-19-2010, 12:10 PM
when hosting a php/mysql project...the below code occuring...pls give the solution

validuser($UserId); if(count($a)>0) { $UserId=$a[0]["user_id"]; $_SESSION["user_id"]=$UserId; header("Location:Main.php"); } else { print "Invalid User"; } } ?>

06-19-2010, 01:27 PM
May be you are missing some opening tag for php <?php or <?

Or In case if you are using php open tags <? and your hosting server doesn't support the opening tags -- u need to change the php.ini setttings in the server.

Hope this helps..

06-21-2010, 07:40 AM
thanks for giving the helpful solution