19.12.2014, 17:37
PHP код:
stock saveHouses(id)
{
format(g_szBuffer, sizeof g_szBuffer,
"UPDATE "MySQL_HOUSES_TABLE" SET \
\
savininkas = '%s', \
PirkimoBusena = %i, \
verte = %i, \
interior = %i, \
kaina = %i, \
uzraktas = %i, \
security = %i, \
TotalTaxes = %i, \
Renter = '%s', \
RentPrice = %i, \
Rentable = %i, \
Case = %i, \
TotalCase = %i \
\
WHERE ID = %i",
namai[id][hSavininkas],
namai[ id ][ hNupirktas ],
namai[ id ][ hVerte ],
namai[ id ][ hInterior ],
namai[ id ][ hKaina ],
namai[ id ][ hLock ],
namai[ id ][ hSecurity ],
namai[ id ][ hTotalTaxes ],
namai[ id ][ hRenter ],
namai[ id ][ hRentPrice ],
namai[ id ][ hRentable ],
namai[ id ][ hCase ],
namai[ id ][ hTotalCase ],
namai[ id ][ fromSQL ]);
sql_query(sql, g_szBuffer, QUERY_THREADED); // threaded naudoti kai neimi duomenų iљ mysql
}
PHP код:
[20:21:03][debug] Natives::sql_query: Scheduling statement (stmt->id = 38, stmt->query = UPDATE houses SET savininkas = 'Iam_Satan', PirkimoBusena = 1, verte = 234046, interior = 0, kaina = 234046, uzraktas = 0, security = 0, TotalTaxes = 1670, Renter = '-', RentPrice = 0, Rentable = 0, Case = 0, TotalCase = 0 WHERE ID = 2, stmt->callback = ) for execution...