Linking tables

fulu1973
04:20:12
Dump Structure! Referring to:.../ajax-listbox-mysql-dump.txt tutorial

Can someone show me the code which was used to link the table plus_cat. cat_Id and table plus2_subcat.cad_Id. How was the plus2_subcat cat_Id data was inserted. I can see that 'plus2_subcat subcay_Id is from the table 'plus2_cat' I wanna know the code to used to link those two tables.

Thanks in advance
smo1234
04-26-2012
There is no direct link, the cat_id is collected and respective record is returned from table
select subcat_id, subcat_name from plus2_subcat where cat_id=$cat_id order by subcat_name
Please Login to post your reply or start a new topic