diff -r 000000000000 -r c270c8b5ddea strings.inc --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/strings.inc Thu May 18 23:47:03 2006 +0200 @@ -0,0 +1,24 @@ +]", ">'", $cadena); + $new= ereg_replace("[&]", "&'", $cadena); + + return $new; +} + +function strtosql($cadena) +{ + return ereg_replace("'", "'", $cadena); +} + +function pricetohtml($price) +{ + if ($price < 0) + return sprintf("%.2f", $price); + else + return sprintf("%.2f", $price); + +} +?>