anonīms Posted November 21, 2008 Report Share 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 Link to comment Share on other sites More sharing options...
codez Posted November 21, 2008 Report Share Posted November 21, 2008 vajag ... SET kills = kills+13, deaths = deaths+2 ... Link to comment Share on other sites More sharing options...
anonīms Posted November 21, 2008 Author Report Share Posted November 21, 2008 (edited) Viss ok! iet. Edited November 21, 2008 by anonīms Link to comment Share on other sites More sharing options...
Recommended Posts