i need somebody to look at this and tell me what im missing
it gives me this error
"parse error, expecting `')''"
<?
@ $db = mysql_pconnect("localhost","user","pass");
if (!$db) { echo "Error: Could not connect to database."; exit; }
mysql_select_db("shop");
$query = "select * from products";
$result = mysql_query($query);
if($result)
{
$num_results = mysql_num_rows($result);
}
for ($i=0; $i < $num_results; $i++)
{
$row = mysql_fetch_array($result);
echo htmlspecialchars (stripslashes($row["pid"]));
echo htmlspecialchars (stripslashes($row["pdesc"]));
echo " - $";
echo htmlspecialchars (stripslashes($row(["pprice"]));
}
?>