This issue may need to be posted on the database help too. I am trying to increment part of a form element from the number of rows from an sql query. Basically I have:
$num=mysql_num_rows($result);
for ($i=1; $i<=$num; $i++) {
$mv_quantity="mv_quantity$i";
}
Then I have the product display:
$products .="<tr><td>
<input name=\"$mv_quantity\" type=\"text\" size=\"1\" value=\"$quantity\">";
Where quantity is actully an output from the query. I have tried a few things to get this to work correctly, but I have not had a whole lot experience working with arrays like this. Basically I need mv_quantity to be +1 for every $num.
Thanks for any advice
MD