in reply to insert CGI script in single quotes. [SOLVED]

It looks like your intended post is supposed to be

print <<EOF; <table> <thead class="flip-content"> <tr> <th width="20%"> Students id </th> <th class="numeric"> First Name </th> <th class="numeric"> Last Name </th> <th class="numeric"> Date Of Birth </th> <th class="numeric"> Year In </th> <th class="numeric"> Password </th> <th class="numeric"> Email </th> <th class="numeric"> Telepon </th> </tr> </thead> EOF while (my @row_array = $sth->fetchrow_array()) { print &lt;&lt;EOF; <tbody> <tr> <td> $row_array&#91;0&#93; </td> <td> $row_array<a href="?node=1">1</a> </td> <td> $row_array<a href="?node=2">2</a> </td> <td> $row_array<a href="?node=3">3</a> </td> <td> $row_array<a href="?node=4">4</a> </td> <td> $row_array<a href="?node=5">5</a> </td> <td> $row_array<a href="?node=6">6</a> </td> <td> $row_array<a href="?node=7">7</a> </td> </tr> </tbody> EOF } print"</table>\n";
There's a reason for the Preview button -- it's to confirm that what you're posting is readable and has the minimum ;) number of spelling mistakes.

Now on to reviewing your code.

Update: Sorry, pressed submit too soon. It looks like you are missing the part that pulls the data from the database -- you need something like $row_array->{$name_of_data_element_goes_here} in your table cell.

Alex / talexb / Toronto

Thanks PJ. We owe you so much. Groklaw -- RIP -- 2003 to 2013.

Replies are listed 'Best First'.
Re^2: insert CGI script in single quotes.
by LanX (Saint) on Apr 25, 2016 at 16:52 UTC
    > There's a reason for the Preview button ...

    > Update: Sorry, pressed submit too soon. ...

    LOL ;-P

    Cheers Rolf
    (addicted to the Perl Programming Language and ☆☆☆☆ :)
    Je suis Charlie!

Re^2: insert CGI script in single quotes.
by pakeidoprek (Novice) on Apr 26, 2016 at 07:56 UTC
    sorry, i'm a newbie sir :). thank's for the suggest :)