Hi,
Hoping someone can help me. I have looked on the net for tutorials and examples but have found nothing...
Basically, I have a table for trainees details, and then two other tables for logging those trainees though training on different devices (t545, t34)
The form before my details page needs to get the trainees name and details for those trainees in either the t545 or the t34 table.
How do I get my mysql recordset to choose data from the t545 or the t34 table depending on what the user selects from the drop down menu?
Eg.
SELECT cust_id, user_id, user_firstname, user_surname
FROM trainees, tablename
WHERE tablename.cust_id = trainees.cust_id
The 'tablename' variable would be ($_GET['product_name']) from the previous form on the previous page...
Any ideas how I can do this? Help appreciated. Hope i have explained it well enough.
Paul.