Quantcast
Channel: MySQL Forums - PHP
Viewing all articles
Browse latest Browse all 938

Dropdown box containing values from database. (3 replies)

$
0
0
I am new to both MySQL and PHP so I really need help!

I have two tables 'Employee' and 'Holiday'.

in my holiday table I have the field 'employee ID' which is a foreign key from the primary key in the employee table.

I am creating a form where employees book holiday. so in the form you enter employee id, first/last name and date of holiday.

Can I have a drop down box in my holiday form for employee ID, where the values in the drop down box are the employee ID's from the employee table?

I apologise if you can not understand my explanation but I appreciate all help! Thanks

Viewing all articles
Browse latest Browse all 938

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>