Ver Mensaje Individual
  #7 (permalink)  
Antiguo 07/11/2003, 13:24
rogel
 
Fecha de Ingreso: noviembre-2003
Mensajes: 157
Antigüedad: 20 años, 5 meses
Puntos: 0
estimado lei el faq que me dijiste y me quedaron dudas hice los siguientes codigos:
página que envia:
Código PHP:
<?php
$link
=mysql_connect("conexion");
            
mysql_select_db("bd",$link);
            
$string="select * from pagos where diocesis='$congrega' and semestre='$semestre' and ano='$ano'";
            
$respuesta=mysql_query($string,$link);
$fe=$fecha;
$sem=$semestre;
$a=$ano;
$cuo=$cuota;
$mon=$monto;
$tot=$total;
echo
"<form action='provando.php' method='post' name='pago'>\n";        
echo
"<table width='75%' border='1'>";
while(
$rows=mysql_fetch_array($respuesta)){
echo
"<tr>";
echo
"<td>"; echo $rows["nombre_alumno"]; 
echo
"</td>";
echo
"<td>Cancela</td>";
echo
"<td><input type=checkbox name=selecion[] value=$rows[numero_alumno]</td></tr>";
}
echo
"</table>";
echo
"<input name='f' type='hidden' value=$fe>";
echo
"<input name='se' type='hidden' value=$sem>";
echo
"<input name='year' type='hidden' value=$a>";
echo
"<input name='cu' type='hidden' value=$cuo>";
echo
"<input name='mo' type='hidden' value=$mon>";
echo
"<input name='to' type='hidden' value=$tot>";
echo
"<input type=submit name=enviar value=Cancelar>";
echo
"</form>";
 
?>

ahora la página que recibe:
<?php
$link
=mysql_connect("conexion");
mysql_select_db("db",$link);
echo 
$year;
$lista=implode(',',$_POST['seleccion']);
$string="Update pagos Set $cu='$f',$mo='$to' Where numero_alumno in(".$lista.") and semestre='$se' and ano='$year'";
$respuesta=mysql_query($string,$link);
} *
?>
Me provoca un error dice: "PARSE ERROR". en linea 38 que es la que tiene el *, que podrá estar fallando ?

Última edición por rogel; 08/11/2003 a las 09:20