ƒυтвσĻιѕт
Сирожиддин, where ni olib tashlasam bitta oyin natijasi hammasiga yozilyapti
22 soat 43 daqiqa 21 soniyadan keyin yozdi:
  1. <?php
  2. define('_IN_JOHNCMS', 1);
  3. $headmod = 'tournament23454';
  4. $textl = 'Кубковые турниры';
  5. require_once ("../incfiles/core.php");
  6. require_once ("../incfiles/head.php");
  7.  
  8. // Новички
  9. if ($id) {
  10.  
  11. $q = mysql_query("select * from fman_matches where turnir='1' AND end = '1' AND id = '$id' DESC LIMIT 1");
  12.  
  13. mysql_query("update `r_cupgame` set
  14. `rez1`='".$m['sc1']."',
  15. `rez2`='".$m['sc2']."',
  16. `pen1`='".$m['pen1']."',
  17. `pen2`='".$m['sc2']."',
  18. `id_report`='".$m['id']."' WHERE `id`='".$m['id_match']."';") or die(mysql_error());
  19.  
  20. header('location: /man/match.php?id='.$id);
  21. }
  22.  
  23.  
  24. require_once ("../incfiles/end.php");
  25. ?>


1. Shuni qayerida xato bor?
2. rez1 rez2, pen1, pen2 ustunlari bo'sh bo'lsa update ishlaydimi yoki insert qilish kerakmi?