I have a table where there is text entered by the user or no text entered. When the table is displayed I currently have a clickable icon that pops open a box displaying the data whether there is any data or not. I would like the clickable icon to indicate whether or not there is a value present… I have this…sort of… with another field already but it was easier because the data value was either Yes or No..see below
<td align=\"center\"><img src=backgrounds/" . $rows['fixed'] . ".png></td>
if yes then the yes.png icon is displayed, if no then the no.png icon is displayed.
Here is what I currently have for the info field
<td align=\"center\"><a href=\"page.html\" target=\"popup\"
onClick=\"wopen('info_form.php?id=$rows[id]', 'popup', 400, 200); return false;\"><img src=\"backgrounds/info4.png\" border=\"0\"></a></td>
is there anyway to do what I want and have similar to the yes no field? I could have a default value in the default field of no and then use a no.png but how would I do a value of not no then use “something other than no”.png??
thanks
do a check on the $row[‘fixed’] to see if there is any value present.