I dont know what I am doing wrong... Maybe its the way my server and PHP is set up...?
When I mysql instead of mysqli, i get the following error:
Fatal error: Class 'mysql' not found in
c:\program files\apache group\Apache\htdocs\dbconnect.php on line 9
Here is what I have in my page:
$db = new mysql('localhost','root','passme');
echo 'Error: Could not connect to database. Please try again later.';
$query = "select * from tbluser";
$result = $db->query($query);
$num_results = $result->num_rows;
echo 'Number of entries found: '.$num_results;
the echo for hello is just to test if it is actually running...
Any help would be greatly appreciated..