this is my code
function dbConn(){
$conn = new mysqli('$db_host','$db_user','$db_pass',$'db_name');
return $conn;
}
$conn = dbConn();
function verifyUser($un){
$sql = 'select * from client where email = ?';
$stmt = $conn->stmt_init();
if ($stmt->prepare($sql)){
$stmt->bind_param('s', $un);
$stmt->execute();
if($stmt->fetch()) {
$stmt->close();
return true;
}
}
}
the database information for the connection is correct from an include file. But I still get the error.
thanks