Hey guys.
simple parse error, but I'm not really sure why.. (most likely because i have a parse error, ey?)
if(!empty($price))
{
if($price < .01)
{
$error .="<span class=\"error\">Your <label for=\"price\">asking price</label> must be atleast one cent.</span>\n";
}
if(!ereg("\.?", $price)) //if there is more than 1 decimal place
{
$error .="<span class=\"error\">Your <label for=\"price\">asking price</label> can only have one (1) decimal point.</span>\n";
}
}
The parse error I'm getting is....:
arse error: parse error, unexpected $ on line 134
line 134 is the last }
thoughts? need more code?