PHP If statement
Posted on 2013-02-01
I'd like to setup a simple php statment that checks to see if the value of variable is empty and if some displays one event and if it has a value then another event is displayed.
The variable is called $row['question'] and if its empty I want to display this :
<img src="change_question_little_button2.jpg" alt="Pulpit rock" width="60" height="50">
If it has a value I want to display this:
Your current value is...<?php echo $row['question']; ?> <img src="change_question_little_button.jpg" alt="Pulpit rock" width="60" height="50">
Thank you very much for your assistance,