in reply to Problems Getting MySQL Data
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());
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Problems Getting MySQL Data
by longjohnsilver (Acolyte) on Oct 07, 2010 at 13:08 UTC | |
by Anonymous Monk on Oct 07, 2010 at 13:32 UTC | |
by Anonymous Monk on Oct 08, 2010 at 00:53 UTC | |
by Anonymous Monk on Oct 08, 2010 at 00:50 UTC | |
|
Re^2: Problems Getting MySQL Data
by Anonymous Monk on Oct 08, 2010 at 00:47 UTC |