
21/07/2004, 07:38
|
| | Fecha de Ingreso: mayo-2003 Ubicación: venezolano en viena!
Mensajes: 142
Antigüedad: 21 años, 10 meses Puntos: 0 | |
Conecion a base de datos ,shop en linia ok ya tengo mi script para carrito de compras pero me sucede algo con relacion a el scrpt de config.php esto es lo que me dice el reame... Cita: INSTALLATION :
==============
STEP I.
EXTRACT FILE "shop.zip"
STEP II.
CHANGE THE CONFIGURATION
ON FILEs "config.php"
STEP III.
THEN, ... JUST DUMP SQL QUERY
ON FILEs "shop.sql"
INTO YOUR MYSQLADMIN
note :
this SQL file includes the available record,
but if you want to remove all the items on table
just edit that "shop.sql" file, by removing "INSERT" command line
STEP IV.
UPLOAD ALL THOSE FILES, THEN ... ahora lo que yo hice fue esto: Código PHP: // *** DATABASE CONFIGURATION ***
$db_serv="mysql.webcindario.com";
$db_dbas="melf";
$db_user="melf";
$db_pass="*******";
$conn=mysql_connect($db_serv,$db_user,$db_pass) or die ("can't connect to server");
@mysql_select_db($db_dbas,$conn) or die ("can't select database");
// *** DEFAULT CURRENCY FOR ORDER FORM
$defcurr=@mysql_result(@mysql_query("select curr_name from shop_curr where def='y'"),0,0);
// *** DEFAULT EMAIL for receiving order from customer
$mailsender="[email protected]";
?>
y mi daros de base de datos son estos: Cita: DATOS CONEXION MYSQL
Servidor: mysql.webcindario.com
DB: melf
Usuario: melf
Contraseña: ******
ESTADISTICAS MYSQL
Tablas: 0 tablas(s)
Tamaño: 0 bytes
Indices: 0 bytes
Actualizado: 21/Jul/2004 15:22 GMT+1 porque me da esete error: Cita: Warning: mysql_connect(): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) in /home/webcindario/melf/recomendado/config.php on line 9
can't connect to server
__________________ http://www.mel-f.com <-- misite :si:
http://www.artepuro.tk <--miforo :no:
[img][/img]
armarse de valor!
Última edición por melf; 21/07/2004 a las 07:39 |