PageRenderTime 53ms CodeModel.GetById 20ms RepoModel.GetById 1ms app.codeStats 0ms

/html/import/import_lms.php

https://github.com/graywh/utstats
PHP | 11 lines | 9 code | 1 blank | 1 comment | 0 complexity | c5ebf57aeff46cd65db27ca81cda0b3e MD5 | raw file
  1. <?
  2. // Find if player left early
  3. $r_player = small_query("SELECT count(id) as cnt FROM uts_temp_$uid WHERE col1 = 'player' AND col2 = 'Disconnect' AND col3 = $playerid");
  4. IF ($r_player[cnt] > 0) {
  5. $sql_playerlms = "UPDATE uts_player
  6. SET gamescore = 0
  7. WHERE id = $playerecordid";
  8. mysql_query($sql_playerlms) or die(mysql_error());
  9. }
  10. ?>