I have a remote server with mysql. Create a database with a single table (all very simple, to see how it works). I write my php code to be able to access my database (with the authentication data well placed) but still does not show anything. Even doing echo at the beginning of everything. Here I leave the code
<?php
echo hola;
$HostName = "localhost";
$HostUser= "tt";
$HostPass= "enrique22";
$DatabaseName= "ejemplo";
echo "se cargo el archivo de configuracion"
if (!($iden = mysql_connect($HostName,$HostUser,$HostPass)))
die("Error: No se pudo conectar con la BBDD");
if(!mysql_select_db($DatabaseName,$iden))
die("Error: No existe la base de datos";
echo "estamos dentro de la base de datos";
$sentencia = "SELECT * FROM employees";
$resultado = mysql_query($sentencia,$iden);
if(!$resultado)
die(" Error: no se pudo realizar la consulta");
mysql_close($iden);
?>