I want to show results of a 'SELECT COUNT' with clause 'WHERE' on display, and I don't know if it is a syntax issue or not; here is my code:
$sql="SELECT COUNT(*) FROM utenti WHERE surname= 'Smith'";
$rs = $conn->query($sql);
$result = mysql_fetch_array($rs);
echo $result[0];