ƒυтвσĻιѕт
  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 id = '$id'");
  12.  
  13. mysql_query("insert into `r_cupgame` set `rez1`='" . $m['sc1'] . "', `rez2`='" . $m['sc2'] . "', `pen1`='" . $m['pen1'] . "', `pen2`='" . $m['pen2'] . "', `id_report`='" . $m['id'] . "' where `id`='" . $id . "';") or die(mysql_error());
  14.  
  15. header('location: /man/match.php?id='.$id);
  16. }
  17.  
  18.  
  19. require_once ("../incfiles/end.php");
  20. ?>



ushbu kodda bazaga yozmayapti.

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'where `id`='12'' at line 1

shuni qanday to'g'rilash mumkun?