What does your webserver error log say? Does your script run from the shell? Does it still run when you run it as the webserver user? Does a very simple script work that only outputs a constant string and does not connect to the database?
You should maybe output some progress to the browser and also use { RaiseError => 1, PrintError => 0 }, so errors show up in your webserver error log but can't go undetected.
I notice these lines in your code:
$result = $start->fetchrow_hashref(); print "Ta-da!: $result->{username}\n";
Maybe your table structure is not what you think it is or your resultset is empty. Try using Data::Dumper to output your structure. You should still see the "Ta-da!" being printed though.
What is this line supposed to do? It has the effect of $start->finish() - is that what you meant to do?
while ($row = $start->fetchrow_hashref());
In reply to Re: Problems Getting MySQL Data
by Corion
in thread Problems Getting MySQL Data
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |