USERS table (id, username, id_country)... COUNTRY table (id_country, countryname)
$crud = new grocery_CRUD(); $crud->set_table('users'); $crud->set_relation('id_country','country','countryname');
⚠ In case you've missed it, we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This is an archived forum. ⚠
Posted 01 June 2013 - 19:28 PM
USERS table (id, username, id_country)... COUNTRY table (id_country, countryname)
$crud = new grocery_CRUD(); $crud->set_table('users'); $crud->set_relation('id_country','country','countryname');
Posted 01 June 2013 - 20:32 PM
I guess it's something similar to this:
/topic/364-answered-set-relation-and-add-new-button-to-quick-insert/
Posted 01 June 2013 - 23:24 PM
Hello and welcome to the forums [member=Charles A.].
Try ti impelement this code [/topic/364-answered-set-relation-and-add-new-button-to-quick-insert/#entry1458 , /topic/364-answered-set-relation-and-add-new-button-to-quick-insert/#entry5428] and see how it goes.
Posted 02 June 2013 - 00:01 AM
Thanks David! I'm checking the posts!