MySQL Inserting...
#4

pawn Код:
new query[1024];
format(query, sizeof(query), "INSERT INTO `HOUSES` (Price, Owned, Owner, etc. ,) VALUES ('%d', '%d', '%s)",
HouseInfo[HouseID][Price],
HouseInfo[HouseID][Owned],
HouseInfo[HouseID][Owner],
etc.

mysql_query(mysql, query);
I would maybe do it like that.
Reply


Messages In This Thread
MySQL Inserting... - by Runn3R - 06.09.2014, 07:20
Re: MySQL Inserting... - by AMouldyLemon - 06.09.2014, 07:32
Re: MySQL Inserting... - by Runn3R - 06.09.2014, 07:37
Re: MySQL Inserting... - by AMouldyLemon - 06.09.2014, 07:42
Re: MySQL Inserting... - by Runn3R - 06.09.2014, 07:46

Forum Jump:


Users browsing this thread: 1 Guest(s)