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
in short, I want a dropdown box to contain values of data that is already in the database! thanks