Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $d151="select * from temporal where ncuenta>'399' and LENGTH(ncuenta)>3";
- $db1=$dbh->prepare($d151);
- $db1->execute();
- id int(11) NOT NULL AUTO_INCREMENT,
- ncuenta varchar (100) COLLATE utf8_spanish_ci,
- dcuenta varchar(100) COLLATE utf8_spanish_ci,
- d151 TINYINT(1) COLLATE utf8_spanish_ci,
- <table>
- <thead>
- <tr>
- <th>N°cuenta</th>
- <th>Descripción</th>
- <th>Agrega o Elimina</th>
- </tr>
- </thead>
- <tbody>
- <?php while ($ver=$db1->fetch(PDO::FETCH_ASSOC)){?>
- <tr>
- <td><?php echo $ver['ncuenta'];?></td>
- <td><?php echo $ver['dcuenta'];?></td>
- <td><input type="checkbox"id="agrega" onChange="agrega(<?php echo $ver['id'];?>);"
- <?php if($ver['d151']==1){echo "checked='checked'";};?>>AGREGAR A CUENTAS</td>
- </tr>
- <?php };?>
- </tbody>
- </table>
- <br>
Add Comment
Please, Sign In to add comment