Welcome Guest, Not a member yet? Register   Sign In
Loading from Mysql Confings
#1

[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 Big Grin


Messages In This Thread
Loading from Mysql Confings - by El Forum - 06-22-2010, 04:00 PM
Loading from Mysql Confings - by El Forum - 06-24-2010, 07:19 AM
Loading from Mysql Confings - by El Forum - 06-24-2010, 08:26 AM
Loading from Mysql Confings - by El Forum - 06-24-2010, 12:12 PM
Loading from Mysql Confings - by El Forum - 06-24-2010, 05:15 PM



Theme © iAndrew 2016 - Forum software by © MyBB