• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Meta key and Meta value in CodeIgniter

#1
I have  a table 

CREATE TABLE IF NOT EXISTS `site_settings` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `meta_key` varchar(255) NOT NULL,
  `meta_value` varchar(255) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=9 ;


INSERT INTO `site_settings` (`id`, `meta_key`, `meta_value`) VALUES
(1, 'site_name', 'ABN WEBETCH'),
(2, 'site_url', 'http://www.abnwebtech.com'),
(3, 'site_slogan', 'Web Make Web Beautiful'),

is there any way to   get meta_value in view without using foreach loop , Actually looking for custom function .

http://prnt.sc/ay22ht

Thanks
Reply


Messages In This Thread
Meta key and Meta value in CodeIgniter - by nkhan - 04-28-2016, 01:47 PM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.