What is the syntax for passing in a username and password for the DBI
module?
I tried this
[% USE DBI('dbi:mysql:dbname, user, password') %]
because that's how I do it in Perl, but I got this error in the apache
err_log
reason: DBI error - DBI connect failed: Access denied for user:
'@localhost'
so it didn't recognize the user part of the DSN.
What am I missing/doing wrong?
Mike
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of Mike Melillo
Sent: Sunday, May 19, 2002 11:08 AM
To: 'Randal L. Schwartz'
Cc: [EMAIL PROTECTED]
Subject: RE: [Templates] trouble with an if statement
I'll take a good laugh for that one. Considering the fix was quick AND
simple.
Mike Melillo
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of Randal L.
Schwartz
Sent: Sunday, May 19, 2002 10:54 AM
To: Mike Melillo
Cc: [EMAIL PROTECTED]
Subject: Re: [Templates] trouble with an if statement
>>>>> "Mike" == Mike Melillo <[EMAIL PROTECTED]> writes:
Mike> reason: file error - parse error: join.tt2 line 55: unexpected
token
Mike> (TAKEN_NAME)
Mike> [% if TAKEN_NAME %]
Mike> Thoughts?
You're gonna die laughing, we hope...
[% IF ... %], not [% if ... %]
Case sensitive.
--
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777
0095
<[EMAIL PROTECTED]> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl
training!
_______________________________________________
templates mailing list
[EMAIL PROTECTED]
http://www.template-toolkit.org/mailman/listinfo/templates
_______________________________________________
templates mailing list
[EMAIL PROTECTED]
http://www.template-toolkit.org/mailman/listinfo/templates