Search found 8 matches
- Sat Feb 27, 2010 5:09 am
- Forum: PHP - Code
- Topic: Whats wrong?
- Replies: 20
- Views: 4165
Re: Whats wrong?
Help please?
- Thu Feb 25, 2010 11:39 am
- Forum: PHP - Code
- Topic: Whats wrong?
- Replies: 20
- Views: 4165
Re: Whats wrong?
I dont get it how to do it :/
- Sat Feb 20, 2010 8:27 am
- Forum: PHP - Code
- Topic: Whats wrong?
- Replies: 20
- Views: 4165
Re: Whats wrong?
Like so?: <?php $dbhost = 'localhost'; $dbuser = '********'; $dbpass = '********'; $dbname = '********; if(!in_array($_SERVER['REMOTE_ADDR'], array('81.20.151.38', '81.20.148.122'))) { die("Error: Unknown IP"); } mysql_connect("$dbhost", "$dbuser", "$dbpass"...
- Fri Feb 19, 2010 2:55 pm
- Forum: PHP - Code
- Topic: Whats wrong?
- Replies: 20
- Views: 4165
Re: Whats wrong?
I tried everything what you told but still nothing :( Here is my code: <?php mysql_connect("localhost", "********", "******"); mysql_select_db("********"); $result = mysql_query("SELECT `player_id` FROM `wc3_player` WHERE `player_name` ='".$_GET['mes...
- Mon Feb 15, 2010 7:02 am
- Forum: PHP - Code
- Topic: Whats wrong?
- Replies: 20
- Views: 4165
Re: Whats wrong?
So .. i have looked this script and now i understand what i did wrong. Should i REPLACE function? Should i take user and points from table and then add some points and then replace these?
- Sat Feb 13, 2010 2:27 am
- Forum: PHP - Code
- Topic: Whats wrong?
- Replies: 20
- Views: 4165
Re: Whats wrong?
I have these three tables in database: CREATE TABLE IF NOT EXISTS `wc3_player_race` ( `player_id` int(8) unsigned NOT NULL DEFAULT '0', `race_id` tinyint(4) unsigned NOT NULL DEFAULT '0', `race_xp` int(8) DEFAULT NULL, PRIMARY KEY (`player_id`,`race_id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin...
- Fri Feb 12, 2010 2:47 pm
- Forum: PHP - Code
- Topic: Whats wrong?
- Replies: 20
- Views: 4165
Re: Whats wrong?
Here is full code: mysql_connect("localhost", "*****", "*****"); mysql_select_db("*********"); $result = mysql_query("SELECT `player_id` FROM `wc3_player` WHERE `player_name` ='".$_GET['message']."'"); if(mysql_num_rows($result) == 0) ...
- Fri Feb 12, 2010 11:21 am
- Forum: PHP - Code
- Topic: Whats wrong?
- Replies: 20
- Views: 4165
Whats wrong?
Hello. Im stuck and need some help. If i add points by my scripti then its give points only for first user in database and change id to 0 (zero). Here is the code: <?php mysql_connect("localhost", "*******", "*****"); mysql_select_db("*********"); $resul...