Frequently Asked Questions

MySQL Numrows error when combining scripts?

I have Flinx installed along with another script and it was working fine up until I set up the other script - now I keep getting an error that looks like this: Warning: mysql_numrows(): supplied argument is not a valid MySQL result resource in /home/you/public_html/folder/category.php on line #. What’s wrong?

You need to edit the scripts to use an absolute path for their config.php. As both scripts are looking for a file with the same name (config.php), it can cause errors.

To fix this, open up the pages that are causing the errors, eg. category.php. You will see this line near the top:

include("config.php");

All you need to do is to change the part inside the quotes to the absolute path to config.php. This is usually in the form /home/username/public_html/folder/config.php. If you don’t know your absolute path, ask your host or check the forums.