News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

don't show relative path

Started by [darksteel], June 03, 2005, 08:48:41 PM

Previous topic - Next topic

[darksteel]

 :) when the mysql is down, the php scripts show:
QuoteWarning: mysql_connect() [function.mysql-connect]: Can't connect to MySQL server on 'localhost' (10061) in c:\wamp\www\conf.php on line 46
No pude conectarme a la base de datos

I like when mysql is down show only the message error from mysql:
QuoteNo pude conectarme a la base de datos
not relative path.

I'am used the php code to connect:
$conex = mysql_connect ($db_server, $db_user, $db_passwd) or die ('No pude conectarme a la base de datos');
mysql_select_db ($db_name, $conex);


For security reason.

Thanks



Luis "[darksteel]" Alvarado.
Spanish Support
¿Qué es el repair_settings?
No doy soporte por PM, publica tu duda en el foro y tendras respuestas mas rapidas.
My forum:
www.caamboard.com

[Unknown]

What security is this going to win you, really?

Anyway, use an @ before the mysql_connect.

-[Unknown]

[darksteel]

Quote from: [Unknown] on June 03, 2005, 08:59:05 PM
What security is this going to win you, really?

Anyway, use an @ before the mysql_connect.

-[Unknown]

Security to don't show my user of the FTP.

Thanks Unknown



Luis "[darksteel]" Alvarado.
Spanish Support
¿Qué es el repair_settings?
No doy soporte por PM, publica tu duda en el foro y tendras respuestas mas rapidas.
My forum:
www.caamboard.com

Advertisement: