MySQL INSERT INTO
#3

As Hal requested, run debug with the plugin, you probably don't establish connection with the database for whatever reason. The only other reason I could see that may be causing your problem is your query isn't long enough (though I doubt it), assuming you're using the whole length of the password array you created (100).

Also, here are a few pointers:
  • You don't need to use ` around fields
  • You should look into default values for fields. It would stop the unnecessary insertion of 0's
  • You should use MAX_PLAYER_NAME definition for the name arrays. It's just nice to follow it in case it changes.
  • The maximum length of an IP address is 16; reduce your array that stores the IP to 16, 50 is unnecessary.
Reply


Messages In This Thread
MySQL INSERT INTO - by Snipa - 19.05.2011, 23:56
Re: MySQL INSERT INTO - by Hal - 19.05.2011, 23:59
Re: MySQL INSERT INTO - by Bakr - 20.05.2011, 00:10
Re: MySQL INSERT INTO - by Snipa - 20.05.2011, 00:10
Re: MySQL INSERT INTO - by Bakr - 20.05.2011, 00:13

Forum Jump:


Users browsing this thread: 1 Guest(s)