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,
>>
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.
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.
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
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
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
>
> 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
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
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]
...
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
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
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
[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
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...
>
&
[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
15 matches
Mail list logo