Código PHP:
while ($registro = mysql_fetch_array($_pagi_result)){
$nombrex = "";
for ($i=0;$i<20;$i++){
if ($i == 18) {
$nombre[] = $nombrex;
echo "<td><center><input type=checkbox name=".$nombre[$r]." value=".$nombrex." ";
if($registro[$i] == 1) echo " checked";
echo "></center></td>";
} else {
echo "<td> $registro[$i] </td>";
if (($i == 0) OR ($i == 2) OR ($i == 11)) {$nombrex .= $registro[$i];}
}
}
}
Código PHP:
$consulta = "SELECT DISTINCT CONCAT(inscripcion,telefono,estado_pedido) AS ID ";
$consulta .= "FROM pedidos_posible_fraude ";
$resultado = mysql_query($consulta,$Sistema);
$numero = mysql_num_rows($resultado);
while(list($key, $val) = each($_POST)) {
$final=strlen($key);
$key=substr($key,6,$final);
while($registro = mysql_fetch_array($resultado)){
switch ($key) {
case $registro['ID']:
echo "Aqui iria mi UPDATE </br>";
break;
}
}
}
mysql_free_result($resultado);