Ver Mensaje Individual
  #3 (permalink)  
Antiguo 18/02/2010, 19:28
rtr
 
Fecha de Ingreso: abril-2009
Mensajes: 368
Antigüedad: 15 años
Puntos: 2
Respuesta: Problema al trasladar la web

Esta es la conexion, como estaba en la web antigua..

Código PHP:
<?php
// Server to connect to, the default is 'LocalHost' but if it does not work use your IP address for your server
$server "numero";

// The name of the database, when using cPanel you would normally have your user name first like so: username_DATABASE-NAME
$database "numero";

// MySQL username to access the database with.    
$db_user "numero";

// MySQL password to access the database with.
$db_pass "numero";

// The table that this script will set up and use, you can change this but recommended to keep the same so if you require any support we can help faster
$table "ac_users";
?>

...y así como está en el nuevo alojamiento, lo he puesto igual que otra web que tengo en ese sitio y funcionando..

Código PHP:
<?php
$mysql_host 
"numero";
$mysql_db "numero";
$mysql_user "numero";
$mysql_pass "numero";
$table "ac_users";
$con = @mysql_connect($mysql_host,$mysql_user,$mysql_pass,$table) or die(mysql_error());
mysql_select_db($mysql_db);
?>
la cadena de conexion es lo que empieza con " $con = "....??