RE: [PHP] Parsing database variables

2007-03-31 Thread Richard Lynch
t; From: Jim Lucas [mailto:[EMAIL PROTECTED] >> Sent: Friday, March 30, 2007 7:32 PM >> To: Jake McHenry >> Cc: php-general@lists.php.net >> Subject: Re: [PHP] Parsing database variables >> >> Jake McHenry wrote: >> > Hi everyone, >>

Re: [PHP] Parsing database variables

2007-03-31 Thread Jochem Maas
Chris Boget wrote: >> But this is a much better way of doing this than using eval(). eval > is an evil little function! > > eval() isn't so bad if you have absolute, total and complete control > over the data you are pulling or using. it remains bad if there is another way to do the same thing.

Re: [PHP] Parsing database variables

2007-03-31 Thread Jochem Maas
Myron Turner wrote: > Jake McHenry wrote: ... >> >> >> > I would suggest writing a function in which the parameters are passed in > as references. In the function itself have set a variables using the > heredoc syntax, which incorporates the variables, and then return the > heredoc variable.

RE: [PHP] Parsing database variables

2007-03-31 Thread Jake McHenry
and trying to > work around it... > > > > Thanks, > > Jake > > > > > > > >> -Original Message- > >> From: Jim Lucas [mailto:[EMAIL PROTECTED] > >> Sent: Friday, March 30, 2007 7:32 PM > >> To: Jake McHenry

Re: [PHP] Parsing database variables

2007-03-31 Thread Jim Lucas
k around it... Thanks, Jake -Original Message- From: Jim Lucas [mailto:[EMAIL PROTECTED] Sent: Friday, March 30, 2007 7:32 PM To: Jake McHenry Cc: php-general@lists.php.net Subject: Re: [PHP] Parsing database variables Jake McHenry wrote: Hi everyone, I have been searching and try

RE: [PHP] Parsing database variables

2007-03-30 Thread Jake McHenry
IL PROTECTED] > Sent: Friday, March 30, 2007 7:32 PM > To: Jake McHenry > Cc: php-general@lists.php.net > Subject: Re: [PHP] Parsing database variables > > Jake McHenry wrote: > > Hi everyone, > > > > I have been searching and trying to do this for the past >

RE: [PHP] Parsing database variables

2007-03-30 Thread Chris Boget
> But this is a much better way of doing this than using eval(). eval is an evil little function! eval() isn't so bad if you have absolute, total and complete control over the data you are pulling or using. But once someone else becomes involved (particularly the front end user), you are probabl

Re: [PHP] Parsing database variables

2007-03-30 Thread Jim Lucas
Jake McHenry wrote: Hi everyone, I have been searching and trying to do this for the past hour without success yet I have a database table with this in it: $name Period Ending Date: $ppe Etc... And in my script, these variables exist and have values. Is there a way for me to get t

Re: [PHP] Parsing database variables

2007-03-30 Thread Jochem Maas
ho $string; // life sucks ?> > > Thanks, > Jake > > >> -Original Message- >> From: Jay Blanchard [mailto:[EMAIL PROTECTED] >> Sent: Friday, March 30, 2007 4:50 PM >> To: Jake McHenry; php-general@lists.php.net >> Subject: RE: [PHP]

Re: [PHP] Parsing database variables

2007-03-30 Thread Myron Turner
... This will work, but was hoping for an easier way... Jake _ From: Daniel Brown [mailto:[EMAIL PROTECTED] Sent: Friday, March 30, 2007 5:02 PM To: Jake McHenry Subject: Re: [PHP] Parsing database variables Jake, could you use ereg_replace() to do that? I split the first

Re: [PHP] Parsing database variables

2007-03-30 Thread Myron Turner
hoping for an easier way... Jake _ From: Daniel Brown [mailto:[EMAIL PROTECTED] Sent: Friday, March 30, 2007 5:02 PM To: Jake McHenry Subject: Re: [PHP] Parsing database variables Jake, could you use ereg_replace() to do that? } I split the first field of the

RE: [PHP] Parsing database variables

2007-03-30 Thread Jake McHenry
way... Jake _ From: Daniel Brown [mailto:[EMAIL PROTECTED] Sent: Friday, March 30, 2007 5:02 PM To: Jake McHenry Subject: Re: [PHP] Parsing database variables Jake, could you use ereg_replace() to do that? mailto:[EMAIL PROTECTED]"[EMAIL PROTECTED]> wrote: Sorry

RE: [PHP] Parsing database variables

2007-03-30 Thread Jay Blanchard
[snip] Sorry.. Typos... But that's not the point... I looked the function... Dunno how I missed it Thanks... Do you know if eval() has any size limitations to it? The database fields are about a page each [/snip] Not that I know of -- PHP General Mailing List (http://www.php.net/) To uns

RE: [PHP] Parsing database variables

2007-03-30 Thread Jake McHenry
L PROTECTED] > Sent: Friday, March 30, 2007 4:50 PM > To: Jake McHenry; php-general@lists.php.net > Subject: RE: [PHP] Parsing database variables > > [snip] > I have a database table with this in it: > > > $name > Period Ending Date: $ppe > Etc... > &

RE: [PHP] Parsing database variables

2007-03-30 Thread Jay Blanchard
[snip] I have a database table with this in it: $name Period Ending Date: $ppe Etc... And in my script, these variables exist and have values. Is there a way for me to get the output from mysql_query to use the current script variables in place of the same variable name within the database