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!
$query ="select drinks.description, barkeeper.username from drinksBarkeeper, barkeeper, drinks where barkeeper.drinksBarkeeper.user_nr and drinks.drinks_nr=drinksBarkeeper.drinks_nr";
I'm not entirly sure what you're asking, but if you're talking about creating a select box based on database values then the usual way to do it is something like:
thanx for answering. actually i am pooling two variables bye the query ($drink and §barkeeper) which are in an n:m relation. so i use a connection table called drinkBarkeeper. and what i want is to diplay these variables next to next in the pulldown.
e.g. drinkw1 keeper3