MySQL loading data with loops?
#1

Is there any way to load the columns in Mysql database with a loop?

I have the following columns in the database:
Код:
Object1, Object2, Object3, Object4, Object5
I tried something like that, but I think it's got to be formatted, I do not know how.
Код:
	if(cache_num_rows() > 0)
	{
		for(new i=0; t < 5; i++)	
		{  
			cache_get_value_int(0, 		"Object%d", 		Player[playerid][Object][%d]);	

		}
	}
Reply


Messages In This Thread
MySQL loading data with loops? - by CMH - 25.01.2018, 19:05
Re: MySQL loading data with loops? - by DobbysGamertag - 25.01.2018, 19:17
Re: MySQL loading data with loops? - by CMH - 25.01.2018, 19:31
Re: MySQL loading data with loops? - by CMH - 25.01.2018, 20:03
Re: MySQL loading data with loops? - by Fratello - 25.01.2018, 20:09

Forum Jump:


Users browsing this thread: 1 Guest(s)