in reply to Re: Foreach Problem! Help!!!
in thread Foreach Problem! Help!!!

The $order value is there only to say what SQL Query to run when user clicks on a button, the program prints a table with values and it has a button to select everything by alphabetic order that's when I am passing the value to $order.
My question is to find out why the code doesn't work because of the first foreach loop on this line
foreach my $key_expal (%expal) {...

Where I need to extract the value of $key_expal to run the SQL query on the database.