[PHP-WIN] Can't figure out a difficult conditional statement

2010-06-03 Thread Bill Mudry
You would think that a relatively simple conditional statement should be quite easy to get working --- but after many retries and reworks, this has got me stumped. I look forward to being shown why and (even better) what actually will work. First, lets give everyone access to the knowledge bas

Re: [PHP-WIN] Can't figure out a difficult conditional statement

2010-06-03 Thread Keith Davis
if ('$picture_filename1' !== "('' or ''")" ) !== means equal and same variable type. NULL in the datatbase returns null in the variable. Not the string 'NULL' and not empty string (''), but actual null and I'm not sure what you mean with the <> around NULL. Do it like this: if ($picture_f