Re: [PHP] config tests

2003-08-14 Thread Curt Zirzow
* Thus wrote Uros Gruber ([EMAIL PROTECTED]): > Hello! > > I just made some speed tests getting configuration from DB. > > For now I figured 2 ways doing this. > > 1. One value in each row > > 2. using serialize($config) and saving this in one row. >$config is predefined array of configurat

Re: [PHP] config tests

2003-08-14 Thread John W. Holmes
Uros Gruber wrote: Hello! I just made some speed tests getting configuration from DB. For now I figured 2 ways doing this. 1. One value in each row id | name| val -- 1| name1 | value1 2. using serialize($config) and saving this in one row. $confi

[PHP] config tests

2003-08-14 Thread Uros Gruber
Hello! I just made some speed tests getting configuration from DB. For now I figured 2 ways doing this. 1. One value in each row id | name| val -- 1| name1 | value1 2. using serialize($config) and saving this in one row. $config is predefined arr

Re[2]: [PHP] config tests

2003-08-10 Thread Uros Gruber
Hi, You don't need to do that way. I also test speed if you select for example 5 diferent values. You get 5 queries. I just select everything in one place then I use $config['config_color'] or you can write some function getConfig('config_color') to get selected value from this array. I use te