Posts: 11,827
Threads: 33
Joined: Dec 2011
Reputation:
0
Would be more efficient to have 1 table with 30 rows (one row for each) instead of 30 fields.
Vince has written 2 tutorials about table structure design and an example of saving player's weapons (instead of 13 fields, 1 weapon = 1 row). Read those, will help you a lot.
Posts: 152
Threads: 24
Joined: Jan 2014
Reputation:
0
I'm newbie at MYSQL. There's a metod by PAWNO?
Posts: 2,862
Threads: 11
Joined: Mar 2008
Reputation:
0
You are doing it wrong. Create one table with columns like id, relatedid and value and then store all info in it. Check wordpress or some other script as reference.
As ****** said, SQL is language which you need to learn like you learned pawn. If you don't want to do that, then stay with saving in files.
Posts: 2,862
Threads: 11
Joined: Mar 2008
Reputation:
0
As I have told you. You are doing it wrong. Saving in files IS NOT IN ANYWAY SIMILAR to saving in SQL database.
If you don't want to devote time and learn how SQL works, its language, database design, etc stay with INI.
I'm glad you are good with pawno, I hope that is also true for pawn.
Posts: 152
Threads: 24
Joined: Jan 2014
Reputation:
0
... Thank you for the support. I want to learn but I ask you (and all there) help. Why you don't help me instead?
Tell me how to do it and I'll do everything..
Thank you.