I was sent this code, but the @$row at the bottom does not work for me? I understand what it seems it is suppose to do, but it doesn't work. I don't find anything in the PERL manual pages about this.
$SQL = "select $variable, $variable from table where db.field = input";
@result = database_call('tracking', 'SELECT', $SQL);
if(!scalar(@result))
{
print "<tr><td colspan=5 align='center'>There are no orders pending shipment.</td></tr>\n";
return;
}
$OnRow = 0;
foreach $row(@result)
{
++$OnRow;
($variable,$variable) = @$row;
Has anybody used this or is there alternate way?
Thanks ahead of time
Nick
$SQL = "select $variable, $variable from table where db.field = input";
@result = database_call('tracking', 'SELECT', $SQL);
if(!scalar(@result))
{
print "<tr><td colspan=5 align='center'>There are no orders pending shipment.</td></tr>\n";
return;
}
$OnRow = 0;
foreach $row(@result)
{
++$OnRow;
($variable,$variable) = @$row;
Has anybody used this or is there alternate way?
Thanks ahead of time
Nick