Display field differently depending on content. PHP MYSQL
Hi all,
A little riddle that I am sure is easy but have no idea how to do;
I have a list of products in a table and one of the cells contains this <?php echo $row_rsLanterns['product_Stock']; ?>. product_Stock has is a set value of either inStock and OutOfStock. I would llike to be able to display something different for each thing. I.E if the field contains inStock I would like to print In Stock and if OutOfStock then it displays Out of Stock. And also changes the colour of each one.
Any ideas would be great.
Thank you
Tom
