[phorm] [Phorm:] Re: Need help using dbfetch

  • From: webbbs@xxxxxxxxx
  • To: support@xxxxxxxxx
  • Date: 11 Mar 2004 17:49:08 -0000

The following new message has been posted on Phorm Support Forum at 
<http://www.phorm.com/support/>. 

*************************************************************************** 

  MESSAGE:  (#3858) Re: Need help using dbfetch 
            <http://www.phorm.com/support/?rev=3858> 
  AUTHOR:   Holotech 
  DATE:     March 11, 2004 at 12:49 p.m. EST 

  Reply To: (#3851) Need help using dbfetch 
  Author:   Mike Talvola 
  Date:     March 10, 2004 at 1:57 p.m. EST 

> With mySQL database cvuuforg and a table users which 
> contains columns PeopleID and UserName, I run the 
> following config [this is only a test case with the 
> subject containing the values]: 

> $PHORM_SUBJECT = "Password Request for $UNAME 
> with $PHORM_DBFNREC is $db_PeopleID"; 

You can't use these variables this way in the configuration file. It's just 
that - configuration; initial setup. The database hasn't been opened yet (how 
could it be - you're setting the access variables right here in the same 
file), and the lookup has not been performed. You can use the variables with 
Phorm variable substitution, so you should have something like: 

$PHORM_SUBJECT = "Password Request for {{UNAME}} with {{PHORM_DBFNREC}} is 
{{db_PeopleID}}"; 

I know it's a rather subtle distinction if you don't know PHP, but with $ 
you're talking to PHP; with {{}} you're talking to Phorm. 

*************************************************************************** 

This is an automatically-generated notice.  If you'd like to be removed from 
the mailing list, please visit Phorm Support Forum at 
<http://www.phorm.com/support/>, or send your request to webbbs@xxxxxxxxxx  If 
you wish to respond to this message, please post your response directly to the 
board.  Thank you! 
-------------------------------------------------
You are receiving this message because you are subscribed to the Phorm mailing 
list. To send messages to the mailing list, simply send email to 
phorm@xxxxxxxxxxxxx from the address you have subscribed. You may unsubscribe 
from the list by sending email to phorm-request@xxxxxxxxxxxxx with 
'unsubscribe' in the SUBJECT field.

Other related posts: