Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    
    use DBI;
    ...
        print "<tr><td>$name</td><td>$price</td></tr>\n";
        print "<tr><td colspan=\"2\">$description</td></tr>\n";
    }
    
  2. or download this
    # ... assume up to $sth->execute
    
    $sth->bind_columns(
    ...
    )  || die("unable to bind columns: ", $sth->errstr);
    
    # ... assume same while-loop and output as before
    
  3. or download this
    #!/usr/bin/perl
    
    use DBI;
    ...
        print "<tr><td>$name</td><td>$price</td></tr>\n";
        print "<tr><td colspan=\"2\">$description</td></tr>\n";
    }