I'm testing out a free hosting accounts script, and get the following error:
You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1
Warning: Division by zero in /home/xfreeho/public_html/accounts9/tpl/admin/view_accounts.inc on line 39
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/xfreeho/public_html/accounts9/tpl/admin/view_accounts.inc on line 51
I assumed it was a problem with the script, so I asked the creator of the script, and he said:
Quote:
After looking over this for sometime now i got the problem figured out but it's a server problem not an ipanel problem. http://www.1freehost.net/accounts9/phpinfo.php 4th liine down says server api = CGI as listed in our requirments this need to be apache which is just having php ran through apache instead of as a CGI.
This means nothing to me, and my host, resellerzoom, have been most uninformative and refused to change their server config.
Does anybody know what caused this error? Could you explain it?
It seem to be a MySql syntax error, not an php error. You execute some query there , try to run the query in phpmyadmin and see what's happens .
The following errors, with division by 0 and stuff, are consequent to an invalid sql query.
« Reply to PHP Error, confusing script and uninformative host = despair!