Guest User

Untitled

a guest
Jun 13th, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. $d151="select * from temporal where ncuenta>'399' and LENGTH(ncuenta)>3";
  2. $db1=$dbh->prepare($d151);
  3. $db1->execute();
  4.  
  5. id int(11) NOT NULL AUTO_INCREMENT,
  6. ncuenta varchar (100) COLLATE utf8_spanish_ci,
  7. dcuenta varchar(100) COLLATE utf8_spanish_ci,
  8. d151 TINYINT(1) COLLATE utf8_spanish_ci,
  9.  
  10. <table>
  11. <thead>
  12. <tr>
  13. <th>N°cuenta</th>
  14. <th>Descripción</th>
  15. <th>Agrega o Elimina</th>
  16. </tr>
  17. </thead>
  18. <tbody>
  19. <?php while ($ver=$db1->fetch(PDO::FETCH_ASSOC)){?>
  20. <tr>
  21. <td><?php echo $ver['ncuenta'];?></td>
  22. <td><?php echo $ver['dcuenta'];?></td>
  23. <td><input type="checkbox"id="agrega" onChange="agrega(<?php echo $ver['id'];?>);"
  24. <?php if($ver['d151']==1){echo "checked='checked'";};?>>AGREGAR A CUENTAS</td>
  25. </tr>
  26. <?php };?>
  27. </tbody>
  28. </table>
  29. <br>
Add Comment
Please, Sign In to add comment