Ver Mensaje Individual
  #13 (permalink)  
Antiguo 02/07/2011, 07:12
IEKK
 
Fecha de Ingreso: agosto-2010
Ubicación: Tenerife
Mensajes: 893
Antigüedad: 13 años, 9 meses
Puntos: 202
Respuesta: variables de sesión

Elimina todo el doctype head body etc del conexion.php.
La conexion hazla sólo con php.
El html a un lado, php al otro.

Código PHP:
<?php include('conexion.php'); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Conectando a la base de datos 'galeriaarte'...</title>
</head>
 
<body>

<?php //el resto del código ?>

</body>
</html>
Código PHP:

    $conexion 
mysql_connect("localhost" "al073529""galeria") or die ( "No se ha podido establecer la conexi&oacute;n con el servidor");
    if (
mysql_select_db("galeriaarte"$conexion))
        echo 
"hola, al fin he entrado a la base de datos" "<br><br>";
    else
        echo 
"adios"
__________________
Pensaba que internet era una gran biblioteca de sabiduría, hasta que comprendí que un libro no puede tener mil páginas llenas de faltas de ortografía... :(