22 soat 43 daqiqa 21 soniyadan keyin yozdi:
Kod · PHP
<?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 turnir='1' AND end = '1' AND id = '$id' DESC LIMIT 1");
$m = mysql_fetch_array($q);
mysql_query("update `r_cupgame` set
`rez1`='".$m['sc1']."',
`rez2`='".$m['sc2']."',
`pen1`='".$m['pen1']."',
`pen2`='".$m['sc2']."',
`id_report`='".$m['id']."' WHERE `id`='".$m['id_match']."';") or die(mysql_error());
header('location: /man/match.php?id='.$id);
exit;
}
require_once ("../incfiles/end.php");
?>1. Shuni qayerida xato bor?
2. rez1 rez2, pen1, pen2 ustunlari bo'sh bo'lsa update ishlaydimi yoki insert qilish kerakmi?
