Posts: 11,827
	Threads: 33
	Joined: Dec 2011
	
Reputation: 
0
	 
 
	
	
		I haven't used more than 5 but I don't see any reason why it couldn't handle that number of tables. 'Database Normalization' should be used where possible so it is still better to have many tables than one huge for all the data.
	
	
	
	
		
	
 
 
	
	
	
		
	Posts: 1,939
	Threads: 11
	Joined: Oct 2015
	
Reputation: 
0
	 
 
	
	
		pls update this tut with new specifiers new comers are spamming in ma inbox
	
	
	
	
		
	
 
 
	
	
	
		
	Posts: 89
	Threads: 22
	Joined: Jul 2017
	
Reputation: 
0
	 
 
	
	
		What do i do if i want to print a value that i return from the database
Like i have a database that has someone with score of 50
i want to send a message to that player that he have a score of 50.
	
	
	
	
		
	
 
 
	
	
	
		
	Posts: 102
	Threads: 2
	Joined: Jul 2017
	
	
 
	
	
		
PHP Code:
new DBResult:result = db_query(sql_pipeline, "SELECT * FROM `table_name` WHERE `score` = 50 LIMIT 1");
if(db_num_rows(result)) {
    new name[MAX_PLAYER_NAME], string[100];
    db_get_field_assoc_int(0, "name", name, sizeof name);
    format(string, sizeof(string), "%s has 50 score", name);
    SendClientMessage(playerid, -1, string);
} 
 
	 
	
	
	
		
	
 
 
	
	
	
		
	Posts: 102
	Threads: 2
	Joined: Jul 2017
	
	
 
	
	
		
Quote:
					Originally Posted by  DAKYSKYE
 
 
Thanks, I have just learnt about what DB_Escape does. 
 | 
 DB_Escape is obsolete, use %e specifier instead.
	
 
	
	
	
		
	
 
 
	
	
	
		
	Posts: 140
	Threads: 35
	Joined: Jul 2017
	
	
 
	
	
		Good tutorial, it helped me a lot now that I have a problem. When using an "ip" is "%q" or "%s" used? and when it is a registration date that only contains "12/24/2018", is "%q" or "%s" used? And, is there another method to use instead of "LIMIT 1"? I've seen other scripts and they have this: "SELECT ID FROM PLAYERS WHERE NAME = '%q';" instead of "LIMIT 1" (I mean ";" at the end of "%q". What does that semicolon mean?