03.01.2013, 16:25
Hi everybody,
I'd like your help to convert just one line of MySQL R6 to MySQL R7 cause i dunno how to use it.
MySQL R6 :
If you can show me how convert this to MySQL R7.
Thanks a lot!
I'd like your help to convert just one line of MySQL R6 to MySQL R7 cause i dunno how to use it.
MySQL R6 :
PHP Code:
format(query, sizeof(query), "SELECT `id` FROM `vehicles` WHERE `owner` = '%s' AND `plate` = '15640'", pname);
mysql_query(query);
mysql_store_result();
while(mysql_retrieve_row())
{
mysql_fetch_field_row(savingstring, "id"); UserInfo[playerid][uVehKey1] = strval(savingstring);
SaveStats(playerid);
}
mysql_free_result();
new rand = random(sizeof(VehicleSpawns));
format(query, sizeof(query), "UPDATE `vehicles` SET `park_x` = '%f', `park_y` = '%f', `park_z` = '%f' WHERE `id` = '%d'", VehicleSpawns[rand][0], VehicleSpawns[rand][1], VehicleSpawns[rand][2], UserInfo[playerid][uVehKey1]);
mysql_query(query);
format(query, sizeof(query), "UPDATE `vehicles` SET `plate` = '*' WHERE `id` = '%d'", UserInfo[playerid][uVehKey1]);
mysql_query(query);
Thanks a lot!