First, the below code gives me an error where the mysql_num_rows(); function is called.

PHP Code:
$dbConnection mysql_connect($dbHost$dbUser$dbPass);
mysql_select_db($dbName);

// Check Database to See If Date Already Exists
$dateQuery "SELECT date FROM $tableCountDay WHERE date='$numDate'";
$dateExe mysql_query($dateQuery);
$numberRows mysql_num_rows($dateExe); 

Secondly, Is there a way to keep session data even after the browser is closed? Or will have to use a cookie?