PHP|Débutant :: Forums

Advertisement

Besoin d'aide ? N'hésitez pas, mais respectez les règles

Vous n'êtes pas identifié(e).

#1 08-11-2017 10:58:52

JoeClark
Membre
Inscription : 04-11-2017
Messages : 2

How would I add to a dropmenu using php?

Hello,

I'm looking to add items from a array to a dropmenu, however I'm only able to add the last item in the array.

What I'm trying to do is
1st, Load and display data from one database field, and display it on a web page.
2nd Write the data to an array for later use.
I'm able to achieve the above ok.

3rd Further down my web page, run the array, and place the array contense into a drop menu, however I can only get it to display the last entry, instead of all of the array.


I didn't find the right solution from the internet.
References:

https://www.php-forum.com/phpforum/view … =1&t=28272

Not pub !!!


Hors ligne

Pied de page des forums