[PHP] re: Object oriented if statements

2001-07-11 Thread Patterson Liddle
Problem solved, thanks to Lasse. (There was white space in the field, and trim sorted it out) Thanks very much for your help --- Regards John Patterson Patterson Liddle Bath phone & fax +44 1225 426722 [EMAIL PROTECTED] www.pattersonliddle.com

[PHP] Re: Object oriented if statements

2001-07-11 Thread Patterson Liddle
Problem solved, thanks to Lasse. (There was white space in the field, and trim sorted it out) Thanks very much for your help. --- Regards John Patterson Patterson Liddle Bath phone & fax +44 1225 426722 [EMAIL PROTECTED] www.pattersonliddle.com

[PHP] Re: Object oriented if statements

2001-07-10 Thread Lasse
Maybe it contains whitespaces... Have you tried: if (trim($record->Subject2) == "posters") { echo ("PrintFormat1"); } else { echo

[PHP] Re: Object oriented if statements

2001-07-10 Thread Patterson Liddle
I wonder if someone would be kind enough to explain why, if $record->Subject2 sometimes contains the word posters this echo $record->Subject2; accurately prints the word or words in the field Subject2 from the found record but this if ($record->Subject2 == "posters