Ver Mensaje Individual
  #7 (permalink)  
Antiguo 28/01/2004, 11:33
sofia2
 
Fecha de Ingreso: diciembre-2003
Mensajes: 212
Antigüedad: 20 años, 4 meses
Puntos: 0
hola claudio, sabes que hice lo q me dices pero no realiza la actualizacion en mi base de datos, me sale el siguiente error:

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 'And B.CO_MOD = A.CO And A.TIPO='e' group by MODULO' at line 1

$arr_bienes=$_POST['bien']; //recibes el arreglo
foreach ($arr_bienes as $bien)
{

$sql="UPDATE equipos_aud SET DISPONIB_EQ = 'NO' WHERE BIEN_NAC = $bien";
$rs2 = mysql_query($sq1, $cni) or die(mysql_error());
echo $sq1."<br>";
}

el check box lo declare asi:
<input name="bien[]" type="checkbox" value="<?php echo $tem9;?> " >

pero no hace la actualizacion, estoy haciendo algo mal??

Última edición por sofia2; 28/01/2004 a las 11:34