i had something running on my machine to output code it worked half an hour ago then i copied and pasted it into another sript recreated the database and now it doesn't work
the code is as follows i keep getting an unitialised value at the line
print "<td>$list_of_teamdata[0][1]</td> \n";
the full program is
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>";
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.
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.