PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Hello I am able to populate a select box with items form a mysql table no problem. But what I am creating is a form that repeats the fields depending on the users selection on the previous page. This works no problem, except for the select box. It fails to show all the results. It only displays the second result I have tried many combinations of nested loops but with no joy. In stead of posting all the code I will post the code which generates the select box. Ideas are welcome.
Also when putting array elements or object properties in strings use braces -- for example "<option value=\"{$nt1['ProductID']}\">" or "<option value=\"{$obj->ProductID}\">".