Ver Mensaje Individual
  #1 (permalink)  
Antiguo 12/05/2005, 13:45
AnTuS
 
Fecha de Ingreso: mayo-2005
Mensajes: 6
Antigüedad: 18 años, 11 meses
Puntos: 0
Problema con PHP

olap, ab kien me puede solucionar esto plis :P

<?
$agc = $_POST['agc'];
$fol = $_POST['fol'];
$bd = $_POST['bd'];
$mpi = $_POST['mpi'];
$ims = $_POST['ims'];
include ("../conectarbd.php");
if ($asignatura=="agc")
{$result=mysql_query("update notas set agc='$agc' where id_nota='$id'");}
elseif ($asignatura=="fol")
{$result=mysql_query("update notas set fol='$fol' where id_nota='$id'");}
elseif ($asignatura=="bd")
{$result=mysql_query("update notas set bd='$bd' where id_nota='$id'");}
elseif ($asignatura=="mpi")
{$result=mysql_query("update notas set mpi='$mpi' where id_nota='$id'");}
elseif ($asignatura=="ims")
{$result=mysql_query("update notas set ims='$ims' where id_nota='$id'");}
?>

me inserta el campo como 0, help plis