Hi all,
I've run into a problem that is giving me a bit of a headache. I'm prety new to PHP, but this problem is probably pretty simple to solve.
I'm using DWMX 2004, and parts of my site give the option to upload an image. What I need is a simple way to check to see if the db field is empty and if so display a standard 'No Image' file stored on the server, if not, then display the actual image.
So I was thinking along the lines of a simple script like the following:
Obvioulsy this is giving me an error but I can't put my finger on the error (as I said, I suck at PHP coding.Code:<?php if ($row_rsTest['filename']==' ') { <img src="$row_rsTest['filename'];" /> } else { <img src="gfx/cog.gif" /> } ?>)
Any help would be MUCH appreciated.
Regards
Psmeg



)



Bookmarks