The output of the following code is: SELECT now() as now all is well $numrows='' no rows found $sql"; $result = mysql_query($sql, $db) || die('query failed on line ' . __LINE__); if ($result) { echo 'all is well
'; } else { echo 'MySQL Error ' . mysql_error(); } $numrows = mysql_num_rows($result); echo "\$numrows='$numrows'
\n"; if ($numrows > 0) { $row = mysql_fetch_assoc($result); $this->_PopulateValues($row); echo "'" . $row['now'] . "'"; } else { echo 'no rows found'; } ?>