14.04.2015, 14:16
Kind of getting confused a bit
Which of the following is it?
1) The table does not exist in the first place.
2) The table exists but the fields gMOTD, etc., are just empty (their value is default (empty string, 0, 0.0, etc)).
You can create the table if it doesn't exist if you want to.
(Just ignore this reply if you are going to stick with the file based system instead.
Which of the following is it?
1) The table does not exist in the first place.
2) The table exists but the fields gMOTD, etc., are just empty (their value is default (empty string, 0, 0.0, etc)).
You can create the table if it doesn't exist if you want to.
(Just ignore this reply if you are going to stick with the file based system instead.
pawn Код:
mysql_connect(/*your credentials*/); //connecting to the database.
mysql_query("CREATE TABLE IF NOT EXISTS misc(gMOTD VARCHAR(60), aMOTD VARCHAR(60), cMOTD VARCHAR(60), ..rest of fields)");