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 6 of 6

Thread: PHP update

  1. #1
    New Coder
    Join Date
    Jan 2012
    Posts
    26
    Thanks
    5
    Thanked 0 Times in 0 Posts

    PHP update

    Hey Guys,

    My hosting company have update PHP and a few scripts are not working, my biggest one is this:


    PHP Code:
    if ($mode == "") { $mode "newcomments"; }

    if (
    $mode == "newcomments"
    {
    }

    if (
    $mode == "newtopics"
    {

    Thank You

  • #2
    Regular Coder
    Join Date
    Aug 2006
    Location
    UK, London, Dartford
    Posts
    221
    Thanks
    3
    Thanked 14 Times in 14 Posts
    PHP Code:
    if ($mode == "" or $mode == "newcomments"
    {
    }
    else if (
    $mode == "newtopics"
    {


  • #3
    New Coder
    Join Date
    Jan 2012
    Posts
    26
    Thanks
    5
    Thanked 0 Times in 0 Posts
    That hasnt done anything, it always goes to mode newcomments

  • #4
    Regular Coder
    Join Date
    Aug 2006
    Location
    UK, London, Dartford
    Posts
    221
    Thanks
    3
    Thanked 14 Times in 14 Posts
    Have you assigned $mode ? or tried printing it to see it's value?

  • #5
    New Coder
    Join Date
    Jan 2012
    Posts
    26
    Thanks
    5
    Thanked 0 Times in 0 Posts
    when I print mode it is saying correct mode, just not going to that mode for some reason?? it was fine 3 hours ago?

  • #6
    New Coder
    Join Date
    Jan 2012
    Posts
    26
    Thanks
    5
    Thanked 0 Times in 0 Posts
    got it working now


  •  

    Posting Permissions

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