PHP - dynamic if statement within mysql while loop -


i try list of products products have 1 or more in request send form before.

here's code:

problem right now, it's including 1 product template there more products quantity >=1 within loop. why 1 , stop?

`

$sql="select id, provider 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 can help, that's quite new me. never needed request within if statement , while loop .....

thanks!


Popular posts from this blog