Connect
$db = mysql_pconnect(‘localhost’, ‘GreatOne’, ‘yardbird’);
if (!$db)
{
echo ‘Error: Could not connect to database. Please try again later.’;
exit;
}
mysql_select_db(‘steve’);
Action
$result=mysql_query($query); //rin the query
$num= mysql_numrows($result); //number of records
