How is it possible to display a specified image if a field comes up as empty?
please be specific when replying, i am new to this.
aswell when you post the code, please state where it goes..😕
and chuckle all you want at this post!
thanks
I assume that you mean form field?
It does not really matter, cuz you are checking the value of a variable from somewhere..
if(empty($someVar)){ // display image } elseif(!empty($someVar)){ // do somethign else }
how can that be done when checking a result id (and not a field) ?
If you mean the result id from a query you can do that a couple ways.
Assume $result is from the query.
if(!result){ // show image } else{ // do something else } or $resultArray=@mysql_fetch_array($result); if(sizeof($resultArray<1)){ // show image } else{ // do something else }
thanks!