Sorry to post this what should be a simple compare, but just can not get the result that I expect and I don't understand why!
$payment=mysql_result($res_,0,"payment");
if ($payment == "Paypal"){
$payment=$MSG_888;
} else {
$payment="";
}
It always returns an empty, yet if I comment out the IF and echo $payment query it shows "Paypal" and case is correct and matches what I want to compare...Thought I was understanding what I was doing most of the time, but this has got me screaming..
Cheers
John
$payment=mysql_result($res_,0,"payment");
if ($payment == "Paypal"){
$payment=$MSG_888;
} else {
$payment="";
}
It always returns an empty, yet if I comment out the IF and echo $payment query it shows "Paypal" and case is correct and matches what I want to compare...Thought I was understanding what I was doing most of the time, but this has got me screaming..
Cheers
John