Help for this page

Select Code to Download


  1. or download this
    use DBI;
    
    my ($dsn) = "DBI:mysql:cpc:localhost"; # data source name
    ...
    # read results of query, then clean up
    while (@ary = $sth->fetchrow_array ())
    {
    
  2. or download this
    }
    $sth->finish ();
    ...
    
    $/ = $tmpstr;
    }