I’m creating a small website php/mysql.
Let’s say I have in my DB a table with different laptop specifications (brand, cpu, …). When adding a new laptop in a html form, in the brand field for instance, I want to have the option to see all the distinct brands present in the DB and either choose one of them or add a new one.
I am not necessarily looking for a code, maybe an idea.
I have 2 ideas so far:
2. I don’t know if there is such an option in html to add brand names somewhere in the code (a little bit like option/select) so when I double click in the input field I can see the list of brands then choose one or just type a new brand in.
3. Your idea/solution…