im trying to configure my site that it calls the data from database through ssi and then you have option to display one record on the page but i cant get it to work. it gives me 500 all the time. even the same thing works nice without ssi call.
my ($i);
my (@hits) = @_;
my ($numhits) = ($#hits+1) / ($#db_cols+1);
my ($count) = ($numhits);
my ($maxhits); $in{'mh'} ? ($maxhits = $in{'mh'}) : ($maxhits = $db_max_hits);
print "<table>";
for (0 .. $numhits - 1) {
print "<tr>";
if($count && $i > $count-1) { last; }
print "</tr>";
$i++;
&html_record_ssi (&array_to_hash($_, @hits));
}
}what could be wrong?
thanks
Quote:
sub html_view_success_ssi { my ($i);
my (@hits) = @_;
my ($numhits) = ($#hits+1) / ($#db_cols+1);
my ($count) = ($numhits);
my ($maxhits); $in{'mh'} ? ($maxhits = $in{'mh'}) : ($maxhits = $db_max_hits);
print "<table>";
for (0 .. $numhits - 1) {
print "<tr>";
if($count && $i > $count-1) { last; }
print "</tr>";
$i++;
&html_record_ssi (&array_to_hash($_, @hits));
}
}
thanks