I get a 500 error when I try to run this. It is my first attempt to use DBI or a database.
#!/usr/local/bin/perl use CGI; use DBI; my $dbh; $dbh = DBI->Connect("DBI:mysql:strossus:localhost","strossus","passwor +d"); my $table = $dbh->prepare qq' CREATE TABLE players (realname CHAR(20), = gold CHAR(40))'); $dbh->disconnect();
In reply to dbi 500 error by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |