View Single Post
  #15  
Old January 28th, 2011, 06:04 PM
Eric's Avatar
Eric Eric is offline
Datafeedr Team
 
Join Date: Feb 2008
Posts: 16,902
Default

Maybe try renaming the function call from format_price to forbabygifts_format_price. Maybe it's conflicting with another function.

PHP Code:
<?php
function forbabygifts_format_price($price) {
$price strip_tags($price);
$price explode("-"$price);
if (
trim($price[0]) == '')
$html 'less than $'.$price[1];
elseif (
trim($price[1]) == '')
$html 'more than $'.$price[0];
else
$html '$'.$price[0] . ' - ''$'.$price[1];

return 
$html;
}
?>

<title>Christening Rosaries | Christening Rosary Gift Ideas | [store.if page="on"] | page [store.page] | [/store.if]<?php if (@$_GET['price']) { ?> Price is <?php echo forbabygifts_format_price($_GET['price']); ?> | <?php ?> </title>