It seems to me that the error you will be giving you is due to the fact that you are using "mysql_connect" on one side to make the connection string and then "mysqli" to perform the processing of the queries. These two methods are not compatible.
If you want everything to work for you, you should change to use "mysql" to do the whole process or "mysqli" for the same thing.
I leave here the code for you to do everything with "mysqli"
//Cadena de conexión
$con=mysqli_connect($hos_name, $user_name, $password, $database);
//Procesado de la consulta
$consulta="SELECT * FROM TABLA";
$resultado=$con->query($consulta);
$fila=$resultado->fetch_array();