Hi guys!!
This piece of code is part of a display page I'm working on. It is suppose to check to see when a admin doesn't include a thumbnail when adding a product to a page, it is suppose to add a default image instead.
I have included the entire page here...I have tested the code but it doesn't seem to work, I get no errors either. I'm not sure if I'm doing it right, should i be doing something in mysql, etc...
If you can help with this one I would appreciate it...its driving me nutz...
thx.
$img_sm=$row['img_sm'];
if ($img_sm <> ""){} //do nothing
else
{
$img_sm='images/default.jpg';
}