Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<?php
 
 
$db = mysql_connect('localhost','root');  
mysql_select_db('foot',$db); 
 
$xxx=$_POST['xxx'];
$yyy=$_POST['yyy'];
 
$x="UPDATE match_live SET sc1_eq1='$xxx',sc2_eq2='$yyy' WHERE id_match=(select MAX(id_match) from match_live)";
$resultat=mysql_query($x) or die ('Erreur '.$requete.' '.mysql_error());
 
header ('location: admin.php'); 
 
 
?>

je veut modifier la derniere colonne de la table match_live quand j'ajoute WHERE id_match=(select MAX(id_match) from match_live) cette eurreur apparait : Erreur You can't specify target table 'match_live' for update in FROM clause