MySQL get id
#1

We have a system of furniture you want to save the edited the object do not know how to get the id of the object from the database.
pawn Код:
format (dbhandle, 512, "INSERT INTO` objects `(` modelid `,` x `,` y `,` z `,` rx ',' ry ',' rz `,` worldid `,` interiorid `) VALUES ('% d', '% f', '% f', '% f', '% f', '% f', '% f', '% d', '% d') ", objectmodel [playerid], Ox, Oy, Oz, Rx, Ry, Rz, wid, pint);
mysql_query (dbhandle);
id is auto increment and how do that when put SelectObject (playerid) when I select the object to say and id of the object database.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)