This is the code I have, once the user hits the "go" button, I need to go back to the data base and grab the rest of the information for the selected records.
.....select * from table1....
while($myrow = mysql_fetch_array($result))
{
$id = $myrow["id"];
$desc = $myrow["desc"];
echo "...$id .... $ desc";
}
I want to display the information for the previous selected records only, so I have to test for the variable inside the loop if I do this:
if ($a1 != "") {
do stuff
}
I will get the same record repeated as many times as I go thru the loop, since they will always satisfies the condition.
I need to know how to build the variable name dinamically inside the loop.
My data base have few records (less than 50), but not a fix number of them , so at a given point in time I dont know how many were displayed (I do know that they were less than 50).
Thanks for your help. It's greatly app.
Thanks sanddy