hi all im trying to update a script i found on a disk for a member site and im struggling with the following error
PHP Notice: Array to string conversion in /home/public_html/dating_V1/dating/includes/database.php(20) : eval()'d code on line 1
heres the code for that section of php
<?php
$link = mysqli_connect($hostname, $username, $password, $database);
if (!$link) {
die('Could not connect !');
exit();
}
$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_array($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 !');
?>
as when i attempt to load site up im geting a blank page any help would be much appreciated x