Сирожиддин, where ni olib tashlasam bitta oyin natijasi hammasiga yozilyapti
22 soat 43 daqiqa 21 soniyadan keyin yozdi:
<?php
$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");
`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); }
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?