Warning mysql_num_rows () supplied argument is not a valid MySQL result resource in C:\Program Files\PacsOne\php\pacsone.php on line 29
Getting this error after logging in. Any ideas?
Warning mysql_num_rows () supplied argument is not a valid
You can do a quick test from the command line to see if your MySQL database is ok or not:
C:\mysql\bin>mysql -u {USERNAME} -p {DATABASE}
where {DATABASE}/{USERNAME} are the MySQL database/username you've created for PacsOne.
mysql>show tables;
If the above command returns 23 tables, then your database is fine (assuming you're running the Premium Edition)
If so, then the problem is probably with the MySQL PHP extension. Check the HTML output of the test page:
http://localhost/pacsone/Hello.php
and make sure you see the mysqli PHP extension is loaded successfully if you've installed MySQL 4.1.x; or the mysql PHP extension is loaded successfully if you've installed MySQL 4.0.x.
C:\mysql\bin>mysql -u {USERNAME} -p {DATABASE}
where {DATABASE}/{USERNAME} are the MySQL database/username you've created for PacsOne.
mysql>show tables;
If the above command returns 23 tables, then your database is fine (assuming you're running the Premium Edition)
If so, then the problem is probably with the MySQL PHP extension. Check the HTML output of the test page:
http://localhost/pacsone/Hello.php
and make sure you see the mysqli PHP extension is loaded successfully if you've installed MySQL 4.1.x; or the mysql PHP extension is loaded successfully if you've installed MySQL 4.0.x.