Hi im attempting to change from mysql to mysqli and ive used a editor that changes it all and im getting the following error after changing all files Fatal error: Call to a member function query() on a non-object in /home/matureco/public_html/config/db_connect.php on line 7
heres the piece of coding for that
$conn = new mysqli(DBHOST,DBUSER,DBPASS) or die($mysqli->error);
$row = mysqli_fetch_array($mysqli->query("select * from settings where id = '1' "));
$site_name = trim(stripslashes($row['site_name']));
$email = trim($row['email']);
$keyword = trim(stripslashes($row['keyword']));
$description= trim(stripslashes($row['description']));
$logo = trim($row['logo']);
$copyright = trim(stripslashes($row['copyright']));
$favicon = trim($row['favicon']);
$paypal_email = trim($row['paypal_email']);
can anyone tell me what ive missed
much appreciated ty jan x