I have made a simple form with two checkboxes.
if the checkbox is checked, then the value “yes” is stored in a database
Now I want to display a table with all results (from the form) like the code below will provide :
$result = mysql_query(“SELECT * FROM register”);
$test = mysql_query(“SELECT * FROM register”);
while($row = mysql_fetch_array($result))
Using this code, I get following table displayed : (example)
But instead of “yes”, I would like to show an image next to coelestis and xanthops. For example show image1.gif if the value is yes and else show image2.gif.
Can someone help me to modify the code I have given above to obtain this ? I don’t know exactly how to insert if/else statements into this code.