⚠ 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. ⚠

  •     

profile picture

Uri segment insert



konradinho
  • profile picture
  • Member

Posted 08 August 2012 - 09:49 AM

Hi.

I have a question. Add a record to the database, the user gives the following data.

How to do it automatically insert the value of the segment:
$this->uri->segment(6);


Thanks ;)

@edit

Ok, solved ;)


$id_meczu = $this->uri->segment(6);
$crud->change_field_type('mecz_id', 'hidden', $id_meczu);