Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
the full program isprint "<td>$list_of_teamdata[0][1]</td> \n";
i'm running out of hair to rip out why would that value be un anitialised. i altered the atabase by delete and then i recreated it with the same script as before.my @list_of_teamdata ; $pain = 0; while (@row = $sth5->fetchrow_array()) { $round= $row[0]; $teamname= $row[1]; $score= $row[2]; $list_of_teamdata[$pain][0] = $round; $list_of_teamdata[$pain][1] = $teamname; $list_of_teamdata[$pain][2] = $score; $pain++; } print "<table border=1> \n"; print "<tr> \n"; print "<th> List of info </th> \n"; print "<tr> \n"; print "<tr> \n"; print "<td>$list_of_teamdata[0][1]</td> \n"; print "</tr> \n"; print "</table>"; print "</body>"; print "</html>";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: yet more dbi issues
by davorg (Chancellor) on Apr 03, 2001 at 18:54 UTC | |
by runrig (Abbot) on Apr 03, 2001 at 21:47 UTC | |
|
Re: yet more dbi issues
by lachoy (Parson) on Apr 03, 2001 at 18:49 UTC |