Ver Mensaje Individual
  #9 (permalink)  
Antiguo 19/02/2017, 23:34
Avatar de aldo1982
aldo1982
 
Fecha de Ingreso: noviembre-2004
Ubicación: Santa Fe (Argentina) Colon F.C
Mensajes: 1.362
Antigüedad: 19 años, 5 meses
Puntos: 6
Sonrisa Respuesta: Php y mysql en servidor remoto. Antes funcionaba. Ahora no. No pasa de la

Probá este código... y como dicen algunos colaboradores...el compilador te pone un php delante del mysql_connect(); seguramente tenes un error de tipeo
Código PHP:
define("DB_HOST""localhost"); // fijate acá si probas en tu localhost... tendras que poner la ip remota  del server
define("DB_NAME""nombre_base_mysql");
define("DB_USER""tuUsuario");
define("DB_PASS""tupassword");

$db = @mysql_connect(DB_HOSTDB_USERDB_PASS) or die(
        
'<html>
        <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
        <title> Erro mysql</title>
        </head>        
        <body>
        <table width="100%" height="100%" border="0" cellpadding="2" cellspacing="2">
            <tr>
                <td align="center" valign="middle">
                    <p>Sitio en mantenimiento.<br>Intente mas tarde. Error:</p>
                    <p>'
.mysql_error().'</p>
                </td>
            </tr>
        </table>
        </body>
        </html>'
);        
mysql_select_db(DB_NAME$db); 
Salu2
__________________
LA MUERTE ESTÁ TAN SEGURA DE VENCER QUE NOS DA TODA UNA VIDA DE VENTAJA