anonīms Posted November 21, 2008 Report Posted November 21, 2008 mysql_query("UPDATE gamefarm_lietotaji SET kills = ".$overview_2c['kills']."+".$kills_2c." AND deaths = ".$overview_2c['deaths']."+".$deaths_2c." WHERE id = {$id_2c}") or die(mysql_error()); ar echo UPDATE gamefarm_lietotaji SET kills = 0+13 AND deaths = 0+2 WHERE id = 11 Īsti nezinu vai pareizi notiek tas SET kills 0+13, bet ideja ir tāda, ka no db izvelk cik viņam pašlaik ir kills un tad pieskaita jauno vērtību.. mysql_error neko nerāda. Problēma: Nepieskaitas kills & deaths
codez Posted November 21, 2008 Report Posted November 21, 2008 vajag ... SET kills = kills+13, deaths = deaths+2 ...
anonīms Posted November 21, 2008 Author Report Posted November 21, 2008 (edited) Viss ok! iet. Edited November 21, 2008 by anonīms
Recommended Posts