I am running the following code to make a query:
public static function myfuncion(){
$conm = new Database();
$sql = "select 'user_nombre' from '".self::$tablename."' where 'user_nick' = ?;";
$conm->prepare($sql);
$conm->execute("Administrador");
$query = $conm->results('array');
return $query;
}
being Database()
the class found in Mysqli_Database and doing a var_dump(myclasse::myfuncion());
does not return a result, but if I eliminate the ...->results('array');
line then if I return the result, I do not know why this happens. Either way it is not the expected result.