04-28-2016, 01:47 PM
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
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