25.07.2012, 13:07
for expample, so
PHP код:
format(Query, sizeof(Query), "UPDATE `Pojazdy` SET `Tuning1` = '%d', `Tuning2` = '%d', `Tuning3` = '%d', `Tuning4` = '%d', `Tuning5` = '%d', \
`Tuning6` = '%d', `Tuning7` = '%d', `Tuning8` = '%d', `Tuning9` = '%d', WHERE `IdAuta` = '%d'",
Pojazd[VehicleId][Tuning1], Pojazd[VehicleId][Tuning2], Pojazd[VehicleId][Tuning3], Pojazd[VehicleId][Tuning4], Pojazd[VehicleId][Tuning5],
Pojazd[VehicleId][Tuning6], Pojazd[VehicleId][Tuning7], Pojazd[VehicleId][Tuning8], Pojazd[VehicleId][Tuning9], Pojazd[VehicleId][idAuta]
);
mysql_query(Query);
format(Query, sizeof(Query), "UPDATE `Pojazdy` SET `Tuning10` = '%d' , `Tuning11` = '%d', `Tuning12` = '%d', `Tuning13` = '%d', `Tuning14` = '%d', `Tuning15` = '%d', \
`Tuning16` = '%d', `Tuning17` = '%d' WHERE `IdAuta` = '%d'",
Pojazd[VehicleId][Tuning10],Pojazd[VehicleId][Tuning11], Pojazd[VehicleId][Tuning12], Pojazd[VehicleId][Tuning13], Pojazd[VehicleId][Tuning14], Pojazd[VehicleId][Tuning15],
Pojazd[VehicleId][Tuning14], Pojazd[VehicleId][Tuning17], Pojazd[VehicleId][idAuta]
);
mysql_query(Query);