Raised This Month: $51 Target: $400
 12% 

GunGame SQL


Post New Thread Reply   
 
Thread Tools Display Modes
Cyb3rH4Xter
Senior Member
Join Date: May 2009
Location: Sweden
Old 05-12-2009 , 01:32   Re: GunGame SQL
Reply With Quote #21

To all guys that need's better hosts, check this: www.speed-stats.de
It's made for psychostats but can be used for gg_stats to cause it's sql database ALLOWS OUTER CONNECTIONS!
Cyb3rH4Xter is offline
creeperdank
Senior Member
Join Date: Dec 2004
Location: IL
Old 05-12-2009 , 09:37   Re: GunGame SQL
Reply With Quote #22

I use PsychoStats 3.1 on my web hosting why wouldn't this work.
I just need to know ex how to set up the cron to copy the gungame.stats to the web hosting.

Operating system Linux
MySQL version 4.1.22-standard-log
PHP version 5.2.5
__________________

Last edited by creeperdank; 05-12-2009 at 10:32.
creeperdank is offline
Send a message via MSN to creeperdank
Cyb3rH4Xter
Senior Member
Join Date: May 2009
Location: Sweden
Old 05-12-2009 , 12:07   Re: GunGame SQL
Reply With Quote #23

Quote:
Originally Posted by creeperdank View Post
I use PsychoStats 3.1 on my web hosting why wouldn't this work.
I just need to know ex how to set up the cron to copy the gungame.stats to the web hosting.

Operating system Linux
MySQL version 4.1.22-standard-log
PHP version 5.2.5
Are you hosting on your own computer?
Cyb3rH4Xter is offline
moonboi03
Member
Join Date: Jul 2006
Old 05-12-2009 , 15:12   Re: GunGame SQL
Reply With Quote #24

this is the error i see in the log file

L 05/12/2009 - 00:01:24: [gungame_sql.amxx] Could not connect to database. Error #1130: Host '66.225.198.130' is not allowed to connect to this MySQL server
__________________
moonboi03 is offline
Cyb3rH4Xter
Senior Member
Join Date: May 2009
Location: Sweden
Old 05-12-2009 , 15:44   Re: GunGame SQL
Reply With Quote #25

Quote:
Originally Posted by moonboi03 View Post
this is the error i see in the log file

L 05/12/2009 - 00:01:24: [gungame_sql.amxx] Could not connect to database. Error #1130: Host '66.225.198.130' is not allowed to connect to this MySQL server
cPanel blocks all connections tries from all ips not listed in the part of the cPanel wheer you can add allowed IPs, that are allowed to connect to the mySql.

As i said to the other guy, if you don't have a static IP, or have a webhost that allows outer connections, you need to host your own mysql or find a better host that allows outer connections, like speed-stats.de.
Cyb3rH4Xter is offline
creeperdank
Senior Member
Join Date: Dec 2004
Location: IL
Old 05-12-2009 , 15:53   Re: GunGame SQL
Reply With Quote #26

No I'm using www.webhostingbuzz.com
__________________
creeperdank is offline
Send a message via MSN to creeperdank
moonboi03
Member
Join Date: Jul 2006
Old 05-12-2009 , 16:15   Re: GunGame SQL
Reply With Quote #27

K i added the ip to allow it access to the MySQL database and this is the error i get now.

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/peppermi/public_html/ggwins.php on line 47

this is the line its talking about

else $query = mysql_query('SELECT * FROM gg_stats WHERE `' . $field . '` = \'' . $value . '\';',$db);
__________________

Last edited by moonboi03; 05-13-2009 at 13:41.
moonboi03 is offline
Cyb3rH4Xter
Senior Member
Join Date: May 2009
Location: Sweden
Old 05-13-2009 , 01:32   Re: GunGame SQL
Reply With Quote #28

Quote:
Originally Posted by moonboi03 View Post
K i added the ip to allow it access to the MySQL database and this is the error i get now.

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/peppermi/public_html/ggwins.php on line 47

this is the line its talking about

if(!mysql_num_rows($query)) return false;
And how its going for the gungame_sql, could you please show me the latest log?
Cyb3rH4Xter is offline
moonboi03
Member
Join Date: Jul 2006
Old 05-13-2009 , 13:40   Re: GunGame SQL
Reply With Quote #29

here is the latest log. It has alot of crap in it but if you read throught it you will see the gungame_sql.amxx error message.

[gungame_sql.amxx] Could not connect to database. Error #1130: Host '66.225.198.130' is not allowed to connect to this MySQL server

yes i did add 66.225.198.13 to the cpanel allowed ip list.

when i visit the page it gives me this error

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/peppermi/public_html/ggwins.php on line 47

when i check line 47 in the the ggwins.php file this is what it says

else $query = mysql_query('SELECT * FROM gg_stats WHERE `' . $field . '` = \'' . $value . '\';',$db);
Attached Files
File Type: log L20090513.log (23.9 KB, 132 views)
__________________
moonboi03 is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 05-13-2009 , 15:00   Re: GunGame SQL
Reply With Quote #30

Quote:
Originally Posted by moonboi03 View Post
[gungame_sql.amxx] Could not connect to database. Error #1130: Host '66.225.198.130' is not allowed to connect to this MySQL server

yes i did add 66.225.198.13 to the cpanel allowed ip list.
Readd the user. I have had the same issue before in the past where I solved it by recreating the user

Quote:
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/peppermi/public_html/ggwins.php on line 47

when i check line 47 in the the ggwins.php file this is what it says

else $query = mysql_query('SELECT * FROM gg_stats WHERE `' . $field . '` = \'' . $value . '\';',$db);
Run the query yourself and see if you get an error back or some results.

Also, for readability sake, I find this much easier to read (yes it does work, I use this format all the time in my scripts)
PHP Code:
else $query mysql_query("SELECT * FROM gg_stats WHERE `$field` = '$value'",$db); 
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
Reply



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

Forum Jump


All times are GMT -4. The time now is 07:45.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode