$sql = "SELECT * FROM ----- WHERE ----";$result = mysql_query($sql) or die(mysql_error());$row = mysql_fetch_array($result); $rows = mysql_num_rows($result);