PHP/Mysql foreign key fill
-
- Posts: 5
- Joined: Mon May 30, 2011 3:23 pm
PHP/Mysql foreign key fill
hello again .i got a question! firstly i fill the form customer data (a field is cust_id).Then i will fill the from purchase.in purchase form a field is cust_id which is the foreign key .My question is - how do I get automatically complete of the Foreign Key field of the form purchase since i alrady filled it in customer form ?
Re: PHP/Mysql foreign key fill
Do you mean a field as in
<input type="text" name="cust_id" />Or a column in the database ?
-
- Posts: 5
- Joined: Mon May 30, 2011 3:23 pm
Re: PHP/Mysql foreign key fill
both... anyway i solve it using session variables tnx for reply