[PHP] Re: Help with nested if statements, is this possible?

2002-04-01 Thread martinahingis
if ($payment_status = Completed) if you do this your if statement is invalid You should do if ($payment_status == Completed) I mean you should use double '=' inorder to say 'equals'. Jim Hankins [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Here is a portion

[PHP] Re: Help with nested if statements, is this possible?

2002-04-01 Thread Hugh Bothwell
... 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