Ravensleach
Programmer
I have a query which produces a list of products and prices (four price fields for different versions of the same product). Prices are type DECIMAL field. Where there is no known price it has the value 0. When printing to the page I would like to replace these 0 values as "<a href="contactus.htm">contact us</a>".
Probably should be some combination of a conditional statement and str_replace .. but it's not replacing a string .. can anyone help?
Probably should be some combination of a conditional statement and str_replace .. but it's not replacing a string .. can anyone help?