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.

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.