hello everyone I'm wanting to filter a calendar by the user who started session, but this error is marking me
Recoverable fatal error: Object of class mysqli_result could not be converted to string
on line 34
This is the form that retrieves the name of the user who is in session or logged in.
$usuario = $_SESSION['user_name'];
$sql="select Nombre from login where user_name ='$usuario' ";
$result= mysqli_query($conexion,$sql) or die(mysqli_error());
and this is my line 34 where I make the calendar query to filter.
* Realizamos la consulta SQL */
$sql="select * from tareas where Auditor ='$result'";
$result= mysqli_query($conexion,$sql) or die(mysqli_error());
if(mysqli_num_rows($result)==0) die("No hay registros para mostrar");
/* Desplegamos cada uno de los registros dentro de una tabla */
echo "<table border=0 cellpadding=15 cellspacing=3>";