Can you populate the <SELECT> list from a database?
Posted 18 September 2006 - 11:08 PM
Another 'key' is that I need the referrer's ID # to pass as well so that reports can be created using the ID# as the search key. So, basically when the visitor selects from the member list to choose the referrer that referrer's name is entered into a new table along with their ID# and the person they referred to.
Posted 18 September 2006 - 11:18 PM
<option value = '$id' > $name </option>
Having selected the referrer you only need store the referrer's id in the new table and not the name. You can get the name by joining to the member table.
Donations gratefully received
|baaGrid| easy data tables - and more
|baaChart| easy line, column and pie charts
Posted 19 September 2006 - 12:07 AM
I'll need to brush up on the 'Join' part of the database structures. I'm not at all familiar with how that works and how to construct it. You've mentioned it before in previous posts. Is there a PHPFreaks tutorial on it somewhere?
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users