[thelist] PHP and My coding ignorance

Chris W. Parker cparker at swatgear.com
Thu Aug 7 16:31:22 CDT 2003

AJ McKee <mailto:aj.mckee at nmtbmedia.com>
    on Thursday, August 07, 2003 6:58 PM said:

> Okay a user submits a number.

This sounds like an assignment.... Hmm???

> Anyone got any ideas?

Yes. For one, I didn't notice three functions in the code you submitted.
There's only do_it() and dont_do_it(). And you describe your functions
as x y z, but then you have these do_it things. Try to be consistent.

> if($number1 / $number2 = (int)($number1 / $number2) {

You are using the assignment operator and not the equality operator ==.
That probably has something to do with it.


More information about the thelist mailing list