|
The text and programs here are from the first edition of CGI Programming 101. This has been replaced by the 2nd edition; please click here to view the updated material from the 2nd edition. |
| Name | Description |
| dbicat.txt | Kite Catalog using DBI (source code) |
| dbicat.cgi | Kite Catalog using DBI (example) |
| count.txt | SQL Page Counter using DBI (source code) Example: You are visitor number 96854. |
while (($stocknum,$name,$price) = $sth->fetchrow) {
print "<input type=\"text\" name=\"$stocknum\" size=5> $name - \$price<p>\n";
}
\$price should be changed to \$ $price.
MySQL, by Paul DuBois and Michael Widenius.
An in-depth look at MySQL, from syntax, table creation, database design and administration, to using the Perl DBI module and PHP. This book is the perfect companion to CGI Programming 101.