Hello,

I am running out of possibilities.  I scaled down my perl script to just

test a database that I have set up.  It is a very small program,
however, I get an error when I run the script.  I cannot figure out what

the heck is wrong with my commands that would give me those errors.  I
just want to make sure that I can at least utilize the databases that I
just created.  If anyone can help, it would be great.

Error message is:
syntax error at world.cgi line 11, near "; }"
Execution of world.cgi aborted due to compilation errors.

Here is the program:
#!/usr/bin/perl -w
use DBI;
use CGI qw(:standard *table :html3);
print header(),start_html("All the People"),start_table();

$dbh = DBI->connect("dbi:mysql:world","lurustest","goblue",{ RaiseError
=>
1 });

$sth = $dbh->prepare("SELECT * FROM people");
While (@row = $sth->fetchrow_array) {
 print Tr(Td( [ @row ] )); }
print end_table(), end_html();
$sth->finish();
$dbh->disconnect();


Should I be using a different html interface module?


Thanks.




---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to