- 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";
}
- 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
- 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";
}