PhpxZ Posted July 2, 2010 Share Posted July 2, 2010 mysql_query("INSERT INTO players (Skin) VALUES('233' ) ") ; It's doesn't change the value... to 233 Quote Link to comment Share on other sites More sharing options...
Pikachu2000 Posted July 2, 2010 Share Posted July 2, 2010 Are you adding a new record or updating one that's already there? Quote Link to comment Share on other sites More sharing options...
PhpxZ Posted July 2, 2010 Author Share Posted July 2, 2010 No nothing.. at my phpmyadmin the "Skin" row is smallint(3) UNSIGNED Null - No. Default 0 Quote Link to comment Share on other sites More sharing options...
marcus Posted July 2, 2010 Share Posted July 2, 2010 Are you connected to a database? $sql = "INSERT INTO `players` (`Skin`) VALUES('233')"; $res = mysql_query($sql) or die(mysql_error()); Quote Link to comment Share on other sites More sharing options...
Alex Posted July 2, 2010 Share Posted July 2, 2010 That code isn't supposed to change any value. It will insert a new row.. Quote Link to comment Share on other sites More sharing options...
PhpxZ Posted July 2, 2010 Author Share Posted July 2, 2010 That code isn't supposed to change any value. It will insert a new row.. So what is yes? and yes its connected to the databate Quote Link to comment Share on other sites More sharing options...
PhpxZ Posted July 2, 2010 Author Share Posted July 2, 2010 Anyone? Quote Link to comment Share on other sites More sharing options...
exhaler Posted July 2, 2010 Share Posted July 2, 2010 if u want to add a new row to the players table: mysql_query("INSERT INTO players (Skin) VALUES('233' ) "); if u wan to update the player: mysql_query("UPDATE players SET Skin = '233'"); Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.