![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
23/07/2003, 13:20
|
| | Fecha de Ingreso: abril-2003 Ubicación: Monterrey, Nuevo Leon Mex
Mensajes: 300
Antigüedad: 21 años, 10 meses Puntos: 3 | |
Mira ahi te va un ejemplo de tu problema a ver si te puedo ayudar
$respla=mysql_query("select * from guarniciones order by cve_gua",$Conexion);
while ($row = mysql_fetch_array($respla))
{
$dscgua = $row["dsc_gua"];
$cvegua = $row["cve_gua"];
$sw = $sw + 1;
echo "<td>";
if($sw > 4)
{
$sw=1;
}
echo "<tr>"
."<td align=\"left\" bgColor=\"#cccccc\"><input type=\"checkbox\" value=\"$cvegua\" name=\"guarniciones[]\"></td>"
."<td noWrap bgColor=\"#cccccc\"> $dscgua </td>"
."</tr>";
}
echo "<tr>"
." <td colSpan=\"1\">"
." <td align=\"center\"><input type=\"submit\" value=\"Seleccionar\" name=\"submit_mult\"></td>"
."</tr>"
El resultado te lo va a dejar en el vector o array no se como le llames tu pero te lo deja en guarniciones[]
a ver si te solucione tu problema |