My problem isn't the same as the other questions, I use a dramatically different code which I'm not sure how to deal with or how to apply solutions of others' codes to mine.
I am getting the error
Object of class mysqli could not be converted to string in
This is the part where my code has problems
<?php
function aggiornamento($utente){
global $conn;
global $_CONFIG;
$selezione=mysqli_query($conn, "SELECT * FROM ".$_CONFIG['db_account'].".account WHERE login = '".$utente."' LIMIT 1");
while ($account = mysqli_fetch_array($selezione))
{
$_SESSION['IShop_Login']= $account['login'];
}
} ?>
Whereas line 5 is the "faulty" line