... an old C trick: when comparing a variable to a
constant, put the constant first, ie
if ("Completed" == $payment_status) {
}
that way, if you accidentally use 'assignment-equals'
instead of 'equivalence-equals', you get a syntax error.
"Martinahingis" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> if ($payment_status = "Completed")
> if you do this your if statement is invalid
> You should do
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php