Jump to content

PHP 5.2.1 has bugs??


magic2goodil

Recommended Posts

After doing some more testing it seems this error is the same thing in every version of PHP I have tried it on.

It returns a blank page when validUser() evaluates to false.

So it must be a coding error on my part.

 

I was trying something new by doing things this way, but what did I do wrong.

 

I challenge you to go back to the first part of this thread, examine my code, and tell me why when validUser() evaluates to false, does it show a blank white screen instead of print out the calendar in user mode.

I'm not suggesting you add that to your script.  I'm just demonstrating that if you say "0 or die", then php will die.

 

In your script you call "mysql_num_rows() or die()".  But if there are 0 rows returned, php will die, because 0 is "equal" to false in php.

 

Was validUser() ever tested on its own?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.