I’m trying to create a tracking system. it has a mysql database with two tables clients and jobs. I have a php form to add new clients. each client has an auto incrementing id when created.
i want to create an add job form that populates all clients from the client database into a dropdown (which i have done) but i also want it to pass along that unique client id so that i can use that number to join the tables later on.
this is what i have for the add job form so far
[php]<?php
$result = mysql_query(“SELECT * FROM clients ORDER BY lName”);
echo"";
echo"";
echo"";
while($row=mysql_fetch_assoc($result))
{
echo “”.$row[‘lName’]." “.$row[‘fName’].”";
}
echo"";
echo"
echo”";
?>[/php]