MySQL Forums
Forum List  »  PHP

Re: Passing dropdown list value to another SELECT statement on same page
Posted by: Jack Berberette
Date: August 03, 2012 08:42AM

Oh...I just thought about something. In this situation, I'm actually only polling one table. The dropdown list is called from the first colum of table 'Races'. That fisrt colum is called 'racename'. From that selection, the table gets created and displays the remaining five colum values for that selection.

So the db table is structred like this:

racename || mightmod || valormod || deftnessmod || insightmod || dweomermod

when the 'racename' is selected from the dropdown, the table that gets displayed shows the following for the name chosen:

mightmod || valormod || deftnessmod || insightmod || dweomermod

Here's the page I'm playing with that shows the dropdown and the full 'Races' table if that helps:

http://www.gamehermit.com/mysqltest2.php

Options: ReplyQuote




Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.