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 Link to comment https://forums.phpfreaks.com/topic/206484-why-this-doesnt-changed/ 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? Link to comment https://forums.phpfreaks.com/topic/206484-why-this-doesnt-changed/#findComment-1080104 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 Link to comment https://forums.phpfreaks.com/topic/206484-why-this-doesnt-changed/#findComment-1080114 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()); Link to comment https://forums.phpfreaks.com/topic/206484-why-this-doesnt-changed/#findComment-1080117 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.. Link to comment https://forums.phpfreaks.com/topic/206484-why-this-doesnt-changed/#findComment-1080122 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 Link to comment https://forums.phpfreaks.com/topic/206484-why-this-doesnt-changed/#findComment-1080137 Share on other sites More sharing options...
PhpxZ Posted July 2, 2010 Author Share Posted July 2, 2010 Anyone? Link to comment https://forums.phpfreaks.com/topic/206484-why-this-doesnt-changed/#findComment-1080176 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'"); Link to comment https://forums.phpfreaks.com/topic/206484-why-this-doesnt-changed/#findComment-1080177 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.