query($sql); if (mysql_num_rows($rs) == 0) { header("Location: ../error.php"); exit; } } else { header("Location: ../error.php"); exit; } ?>