MySQL how to insert data?
#3

... I know how to insert...
this is what I thought would be okay:

Код:
	getdate(year, month, day);
	format(data, sizeof(data), "%d-%d-%d", day, month, year);
	format(query, sizeof(query), "INSERT INTO `kicks` (player, victim, reason, data) VALUES ('%s', '%s', '%s', '%s')", GetName(playerid), GetName(id), reason, data);
Reply


Messages In This Thread
MySQL how to insert data? - by PaulDinam - 07.02.2013, 17:56
Re: MySQL how to insert data? - by Scenario - 07.02.2013, 17:59
Re: MySQL how to insert data? - by PaulDinam - 07.02.2013, 18:04
Re: MySQL how to insert data? - by Scenario - 07.02.2013, 18:05
Re: MySQL how to insert data? - by Meta - 07.02.2013, 18:12
Re: MySQL how to insert data? - by Scenario - 07.02.2013, 18:16
Re: MySQL how to insert data? - by Meta - 08.02.2013, 09:54

Forum Jump:


Users browsing this thread: 3 Guest(s)