...

View Full Version : PHP update



soupy1985
01-31-2012, 09:25 PM
Hey Guys,

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



if ($mode == "") { $mode = "newcomments"; }

if ($mode == "newcomments")
{
}

if ($mode == "newtopics")
{
}

Thank You

Lee Stevens
01-31-2012, 09:42 PM
if ($mode == "" or $mode == "newcomments")
{
}
else if ($mode == "newtopics")
{
}

soupy1985
01-31-2012, 09:47 PM
That hasnt done anything, it always goes to mode newcomments

Lee Stevens
01-31-2012, 09:58 PM
Have you assigned $mode ? or tried printing it to see it's value?

soupy1985
01-31-2012, 10:02 PM
when I print mode it is saying correct mode, just not going to that mode for some reason?? it was fine 3 hours ago?

soupy1985
01-31-2012, 10:13 PM
got it working now



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum