PHP - mysql while循环中的动态if语句

I try to get a list of my products BUT only for products that have 1 or more in the request I send with a form before.

Here's my code:

Problem is right now, it's including only for 1 product the template BUT there are more products with quantity >=1 within this loop. Why only 1 and than stop?

`

$sql="SELECT id, provider FROM products";

$result=mysql_query($sql);

while($propdata=mysql_fetch_array($result))

{ 

if ($_REQUEST['qty' . $propdata[id]] >= 1)
{
$mid = $propdata[id];
include('file1.php');
include($propdata[provider] . '-file2-template.php');
}

}

`

Hope you can help, that's quite new for me. Never needed a Request within an if statement and while loop .....

Thanks!