⚠ 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

how to Get column value in local variable



orainfra

orainfra
  • profile picture
  • Member

Posted 05 March 2020 - 07:30 AM

$crud = new grocery_CRUD();
 
$crud->set_theme('datatables');
$crud->set_table('sales');
$crud->set_subject('sale');
$crud->required_fields('sales_id','date','customer_id');
$crud->columns('sales_id','customer_id','date','payment_mode','payment');
$crud->display_as('sales_id','Sales Id');
$crud->display_as('customer_id','Customer');
 
$crud->set_relation('customer_id','customer','customer_name');
 
$mode=' ';

 

// here is my local variable $mode and i want to get value of 'payment_mode'
// i want move value of 'payment_mode' into $mode
 
Kindly any one help us