PHP escape $ sign and echo a string my fetching database

Posted by pnm123 on Stack Overflow See other posts from Stack Overflow or by pnm123
Published on 2010-05-01T18:03:16Z Indexed on 2010/05/01 18:07 UTC
Read the original article Hit count: 249

Filed under:
|
|
|

Hello,

I want to know how to echo a string that have a $ sign from a database. At this time, the value on database 'Buy one for $5.00' converts to 'Buy one for .00'.

Ex:- Field: title | Value: Buy one for $5.00

<?php
$row = mysql_fetch_array.....
$title = $row['title'];
echo $title;
?>

Thank you, pnm123

© Stack Overflow or respective owner

Related posts about php

Related posts about escape