[eluser]pisio[/eluser]
Hi all.
I wonna ask you , how i can get from mysql data and set it in same global varibian.
Code:
CREATE TABLE IF NOT EXISTS `config` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` text COLLATE utf8_unicode_ci NOT NULL,
`value` text COLLATE utf8_unicode_ci NOT NULL,
`discription` text COLLATE utf8_unicode_ci NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=5 ;
INSERT INTO `config` (`id`, `name`, `value`, `discription`) VALUES
(1, 'image_dir', './images/', 'Пътя за качване на снимки'),
(2, 'result_per_page', '20', 'Резултати на страница'),
(3, 'subtitle_directory', './subs/', 'Пътя за качване на субтитрите'),
(4, 'avatar_dir', './images/avatars/', 'Пътя до аватарите на потребителите');
a = Code to get confings
b = user/edit exp ....
c = view page for user/edit
And now i can use data from "A" in "B" and "C" , like as
$this->db->get_where and $this->load->view
I'm sorry for my bad english. If you don't understand me don't wory ;p be happy