topical media & game development

talk show tell print

mashup-gmaps-ch09-11.pl / pl



  #!/usr/bin/perl
  
  use DBI;
  
  my dbh = DBI->connect( 'dbi:mysql:database=mapsbookex;host=db.maps.mcslp.com',
                          'mapsbookex',
                          'examples',
                          );
  
  if (defined(dbh))
  {
      dbh->do('create table ch08_cplx (lat float,lng float,title varchar(80),street varchar(80),city varchar(80),postcode varchar(80),phone varchar(80))');
  }
  else
  {
      die "Couldn't open connection to database\n";
  }
  
  


(C) Æliens 20/2/2008

You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.