PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
$conn = new CoolClass;
echo $conn->mError;//this works perfect
if ($conn->mError)//this does NOT work
{
//do stuff
}
if ($conn->mError != NULL)//this does NOT work
{
//do stuff
}
why do the last 2 examples not work when the 1st one does work?
(this topic should probebly be moved to general discussion)
ol4pr0 wrote:LOL, the dumbest thing that happends to me ( Urmm rather often )
Editing a file and Refreshing your page without anychange thinking something didnt work untill you discover that you were editing the wrong file.
Like the backup.. s
Simular look just a differant dir
haha ya i have done that one many times. today, being monday of couse i wasted 2 hours becuase i was doing a while loop and it wasnt working. i couldnt figure it out and after extensive testing i saw that i had done this