Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New Coder
    Join Date
    Jun 2010
    Posts
    13
    Thanks
    1
    Thanked 0 Times in 0 Posts

    hosting php/mysql project

    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"; } } ?>

  • #2
    New Coder
    Join Date
    Jun 2010
    Posts
    24
    Thanks
    2
    Thanked 1 Time in 1 Post
    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..

  • #3
    New Coder
    Join Date
    Jun 2010
    Posts
    13
    Thanks
    1
    Thanked 0 Times in 0 Posts
    thanks for giving the helpful solution


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •