[eluser]EEssam[/eluser]
Hello,
I have the following code in my old app to get settings from DB:
// get global settings
$result = mysql_query("SELECT varname, value FROM setting");
if (!$result)
{
die ('Could not successfully get settings from DB: ' . mysql_error());
}
$options = array();
while ($row = mysql_fetch_assoc($result))
{
$options[$row['varname']] = $row['value'];
}
mysql_free_result($result);
What would be the ideal method to integrate it with CI?
Please advise.