hej
bruger allerede Num_rows
$result = @mysql_query(" select count(*) from cart where cookieId = ". GetCartId()." and itemId = '$itemId' ") or die('Kunne ikke forbinde1: ' . mysql_error());
$row = @mysql_fetch_row($result);
$numRows = $row[0];
Fejlen er: Kunne ikke forbinde1: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1