ƒυтвσĻιѕт
Kod · PHP43 qator
<?php

define('_IN_JOHNCMS', 1);

$headmod = 'tournament23454';

$textl = 'Кубковые турниры';

require_once ("../incfiles/core.php");

require_once ("../incfiles/head.php");

 

// Новички

if ($id) {

 

$q = mysql_query("select * from fman_matches where id = '$id'");

$m = mysql_fetch_array($q);

 

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());

 

header('location: /man/match.php?id='.$id);

exit;

}

 

 

require_once ("../incfiles/end.php");

?>



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?