[eluser]xwero[/eluser]
[quote author="webthink" date="1203958930"]
For your second example it's possible to edit more than one table at a time.
In my register example I insert records into both the users and profiles table like this
Code:
$this->oobleck->fill_table_from_form(CREATE,'user');
$this->oobleck->fill_table_from_form(CREATE,'profile');
[/quote]
I was sure there was a way to do the first scenario without too much trouble But with the second scenario there is an additional factor. Because the url is part of another table where other urls are gathered as well it's possible the id in the url table isn't the same as the id in the blog table. I don't want to create another table so i add a ref_id field to the url table but to fill that ref_id field you need to know the insert_id so that part will be
Code:
$this->oobleck->fill_table_from_form(CREATE,'user');
$insert_id = $this->db->insert_id();
How can you add the insert_id variable to the url insert? If i understand your code for the additional fields, it only looks for a function in the controller.