At 11:51 AM 4/6/01 -0500, Jeff Oien wrote:

>if ($num = 0) {
>         print "<html>error message etc.
>         exit;
>}

   This "conditional" will always run.  you are assigning $num the value of 
zero within your if() statement, and that assignation actually happens, so 
the result is "true" and the braced statements run.

   Try:

    if ($num == 0) {
       print "blah blah blah, etc.\n"
       exit;
    }

  - Brian

  -------------------------------------
    Brian S. Dunworth
    Sr. Software Development Engineer
    Oracle Database Administrator
    The Printing House, Ltd.

    (850) 875-1500  x225
    <[EMAIL PROTECTED]>
  -------------------------------------


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to