Guest User

Untitled

a guest
Jun 13th, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. #!/usr/local/bin/perl -w -s
  2.  
  3. use DBI;
  4.  
  5. my $dbh = DBI->connect("dbi:mysql:porta-billing", "root");
  6.  
  7. my $sth = $dbh->prepare(<<SQL);
  8. SELECT name, value
  9. FROM UA_Profile_Values
  10. WHERE i_ua_profile=259
  11. SQL
  12.  
  13. $sth->execute;
  14.  
  15. #my %parameters = $sth->fetchrow_array();
  16.  
  17. foreach ($sth->fetchrow_array()){
  18. print "$_\n";
  19. }
Add Comment
Please, Sign In to add comment