I am retrieving a field from a database on a coupon site I am helping to develop. One of the fields has the promo info, for example, "Buy this product for only $10.99". When I retrieve the field and echo it, it parses the price as a variable, and I end up with "Buy this product for only .99"
How can I avoid this?
My code looks as follows:
$resultTitle = mysql_query("SELECT post_title FROM wp_posts WHERE ID = " . $f_couponId . " LIMIT 1") or die(mysql_error());
$valueTitle = mysql_result($resultTitle,0);
$echo("$valueTitle");
Thx!