Guest User

Untitled

a guest
Jun 20th, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. #!/usr/bin/perl -w
  2. use DBI;
  3.  
  4. print "Content-type:text/htmlnn";
  5. $db_handle = DBI->connect("dbi:mysql:database=CYP1B1;host=localhost:192.168.3.93;")
  6. or die "Couldn't connect to database: $DBI::errstrn";
  7.  
  8. $sql = "SELECT * FROM BPCG";
  9. $statement = $db_handle->prepare($sql)
  10. or die "Couldn't prepare query '$sql': $DBI::errstrn";
  11.  
  12. $statement->execute()
  13. or die "Couldn't execute query '$sql': $DBI::errstrn";
  14. print "LocationtNucleotidechangetAminoacidchangen";
  15. while(($Location,$Nucleotidechange,$Aminoacidchange)=$statement->fetchrow_array())
  16. {
  17. print "$Location $Nucleotidechange $Aminoacidchange n";
  18.  
  19. }
  20. $db_handle->disconnect();
Add Comment
Please, Sign In to add comment