hi all im getting the following error
PHP Notice: Array to string conversion in /home/public_html/includes/database.php(23) : eval()'d code on line 1
in this file
<?php
$link = @mysqli_connect($hostname, $username, $password, $database);
if (!$link) {
die('Could not connect !');
exit();
}
else{
mysqli_set_charset($link,'utf8');
}
$sqlcf = 'select Variable, Value from '.$table_prefix.'site_settings where IsRead = 0';
$qrycf = mysqli_query($link,$sqlcf);
if(!$qrycf)
die('Can not load config data !');
elseif(mysqli_num_rows($qrycf)>0){
while($rowcf = mysqli_fetch_assoc($qrycf)){
if('filetype'==trim(strtolower($rowcf['Variable'])))
$$rowcf['Variable'] = explode(',', $rowcf['Value']);
elseif('numof_record_perpage'==trim(strtolower($rowcf['Variable'])))
$$rowcf['Variable'] = intval($rowcf['Value']);
elseif('default_language'==trim(strtolower($rowcf['Variable'])))
$_SESSION['lang'] = isset($_SESSION['lang'])?$_SESSION['lang']:$rowcf['Value'];
else eval("$\$rowcf['Variable'] = \"$rowcf[Value]\";");
}
}
else die('Can not find setting table !');
and im not sure what i have to do can someone please advice many thanks in advance jan x