$hostname = "localhost";
$database = "mydb";
$username = "me";
$password = "";
$dbcnx = mysql_connect($hostname, $username, $password) or die(mysql_error());
mysql_select_db($database, $dbcnx);
$query = "SELECT NOW() as datetime;";
$result = mysql_query($query, $dbcnx) or die(mysql_error());
$datetime = mysql_fetch_result($result,0,'datetime');
echo "MySQL Query NOW(): ".$datetime;
Rows are what gets returned by a database, whether you hit the data underlying it or now. You basically get back a matrix in memory that is indexed along one access by an integer for row number of the result, and across the other access by either field number or name. this applies to ALL queries, whether they hit the datastore underneath them or now.