Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
PHP Error, confusing script and uninformative host = despair!
Old 11-25-2005, 08:59 AM PHP Error, confusing script and uninformative host = despair!
Harvey's Avatar
Super Spam Talker

Posts: 901
Name: Harvey C
Location: Brighton, UK
Trades: 0
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?

Thanks
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
Harvey is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 11-25-2005, 05:14 PM
dotBoost's Avatar
Novice Talker

Posts: 5
Trades: 0
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.
dotBoost is offline
Reply With Quote
View Public Profile Visit dotBoost's homepage!
 
Reply     « Reply to PHP Error, confusing script and uninformative host = despair!
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.33690 seconds with 12 queries