Question
PHP Yes/No or True/False Function
I have a dynamic table that shows the fowllowing...
<td><?php echo $row_rsAnnouncement['online']; ?></td>
I am using MySQL database, and it is "tinyint".
When I view it, it shows either 0 or 1. How can I make this online field to say Yes or No. If that is not possible even if it is shows a True or False I can be happy with that.
I know that in Coldfusion there is a function called #YesNoFormat()#, is there one for PHP?
Thank you,
AdonaiEchad
<td><?php echo $row_rsAnnouncement['online']; ?></td>
I am using MySQL database, and it is "tinyint".
When I view it, it shows either 0 or 1. How can I make this online field to say Yes or No. If that is not possible even if it is shows a True or False I can be happy with that.
I know that in Coldfusion there is a function called #YesNoFormat()#, is there one for PHP?
Thank you,
AdonaiEchad
