coppermine-gallery.com/forum

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:


QuoteCoppermine 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.