Welcome Guest, Not a member yet? Register   Sign In
create dynamic variable in config.php
#5

[eluser]marine[/eluser]
Hello,

thank you for your help. I try to modified variable from MY_Controller but it don't function.
I found an other solution, not the best I imagine but this solution function for the moment!

I connect database with php like :
Code:
mysql_connect("server", "login", "password"); // Connexion à MySQL
mysql_select_db("my_database"); // Sélection de la base test
$query = "SELECT libelle, code FROM langues WHERE active = 1";
$result = mysql_query($query);
$lg = array();
while($row = mysql_fetch_array($result)){
    $lg[$row['code']] = $row['libelle'];
}
mysql_close();

$config['lang_uri_abbr'] = $lg;

thanks again for your help.


Messages In This Thread
create dynamic variable in config.php - by El Forum - 02-26-2013, 04:25 AM
create dynamic variable in config.php - by El Forum - 02-26-2013, 07:51 AM
create dynamic variable in config.php - by El Forum - 02-26-2013, 08:03 AM
create dynamic variable in config.php - by El Forum - 02-26-2013, 09:31 AM
create dynamic variable in config.php - by El Forum - 02-27-2013, 02:42 AM



Theme © iAndrew 2016 - Forum software by © MyBB