Posted by Toby A Inkster on 02/09/07 10:51
One wrote:
> history['order_total'] is $241.47
> [60][98][62][36][50][52][49][46][52][55][60][47][98][62]
$history['order_total'] contains '<b>$241.47</b>'. This is not a number.
$history['order_total'] = (float)preg_replace('/[^0-9\.]/', '',
strip_tags($history['order_total']));
--
Toby A Inkster BSc (Hons) ARCS
Contact Me ~ http://tobyinkster.co.uk/contact
Geek of ~ HTML/CSS/Javascript/SQL/Perl/PHP/Python*/Apache/Linux
* = I'm getting there!
[Back to original message]
|