Advertisement
NelsonGG

Untitled

Feb 1st, 2017
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.62 KB | None | 0 0
  1. $Acuit = Array();
  2. $stmt = $mysqliSOL->prepare("SELECT cuit,RAZON_SOCIAL FROM cobranzas_padron
  3.                                 GROUP BY CUIT,RAZON_SOCIAL
  4.                             UNION ALL
  5.                             SELECT CUIT,RAZON_SOCIAL FROM cobranzas
  6.                                 GROUP BY CUIT,RAZON_SOCIAL
  7.                            
  8.                             ORDER BY RAZON_SOCIAL ASC");
  9. $stmt->execute();
  10. $stmt->bind_result($cuit,$razon_social);
  11. while ($stmt->fetch()){    
  12.     $Acuit[$cuit] = $razon_social;
  13.     //$Acod[] = Array($cuit, $razon_social);
  14.     //$AcodDesc[$cuit] = $razon_social;
  15. }
  16. $stmt->close();
  17.  
  18. foreach ($Acuit as $cuit=>$razon_social){
  19.     $Acod[] = Array($cuit, $razon_social);
  20.     //$AcodDesc[$cuit] = $razon_social;
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement