forum.coppermine-gallery.net

Support => cpg1.4.x Support => Older/other versions => cpg1.4 miscellaneous => Topic started by: freesouljah on July 16, 2006, 09:21:05 am

Title: Location of "Unable to connect to UDB database!" in Source Code
Post by: freesouljah on July 16, 2006, 09:21:05 am
Greetings,

I am hoping someone could tell me where to find the location of this in the source code:


Quote
Coppermine critical error:
Unable to connect to UDB database !

MySQL said:

I would like to customize the message for visitors and possibly add some html to it....


thanks
 8)
Title: Re: Location of "Unable to connect to UDB database!" in Source Code
Post by: Sami on July 16, 2006, 09:23:20 am
udb_base.inc.php
Title: Re: Location of "Unable to connect to UDB database!" in Source Code
Post by: freesouljah on July 16, 2006, 09:41:29 am
sweet...thank you for the super fast response  ;D ;D
Title: Re: Location of "Unable to connect to UDB database!" in Source Code
Post by: freesouljah on July 16, 2006, 10:02:38 am
works great...thanks again...

just in case someone else needs to know...if you are going to use tags with a " in them, don't forget to add the \ before them: \" .... otherwise you will get a t string error....

peace
Title: Re: Location of "Unable to connect to UDB database!" in Source Code
Post by: Joachim Müller on July 16, 2006, 11:57:53 am
To keep code better readable, you can use single quotes or the heredoc syntax (http://www.php.net/manual/en/language.types.string.php#language.types.string.syntax.heredoc) in such cases.