Problems with the Windows version of XAMPP, questions, comments, and anything related.


Postby Dreepa » 04. September 2004 00:18

I installed XAMPP and so far it rocks.
I am trying to get the query result out of the database to display:

I used the following code:
$query = "SELECT *
FROM tester";
$result = mysql_query($query);
$number = mysql_num_rows($result);

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in C:\apachefriends\xampp\htdocs\xampp\va.php on line 17

I searched on google and found nothing.
Any ideas what is going wrong?
And libs I have to set?
Posts: 1
Joined: 03. September 2004 22:29

Postby Wiedmann » 04. September 2004 00:25

Where is mysql_connect() and mysql_select_db() in your code? Is an error handling present with these two functions?
AF Moderator
Posts: 17106
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 82 guests