I was trying to load content into an HTML table with the data I have in the database, but I find this "small" error. I have been visualizing different sites and as I did not find a quick and functional solution I come to you.
This is my PHP code.
<?php
session_start();
if(!isset($_SESSION["user"])){
header("location:login.php");
}
include "conexion.php";
$correo = $_SESSION["user"];
$query = "SELECT cbtahd.tblreportes.emisor,cbtahd.tblempleados.sucursal,cbtahd.tblreportes.area,cbtahd.tblempleados.extension,cbtahd.tblreportes.extension ,cbtahd.tblreportes.reporte, cbtahd.tblreportes.fechaEmi FROM tblempleados inner join tblreportes on tblreportes.receptor = tblempleados.nombreapellidoarea where tblempleados.email = '$correo'";
$resultado = mysql_query($query);
while ($fila = mysql_fetch_array($resultado, $conexion) or die (mysql_error())){
echo "fila[emisor]";
}
?>
This is the message that the server sends me
This is my connection.php file
<?php
$conexion = new mysqli("localhost","root","","cbtahd");
?>
And this is the select that I put in PHP running directly from the workbench.