Re: [PHP] help with EVAL direct

2003-11-05 Thread j . sobotka
"Cpt John W. Holmes" wrote: > From: <[EMAIL PROTECTED]> > > > OS RedHat 9 and RedHat 7.2 > > Apache 1.3.27 and Apache 2 > > > > I have problem with direct eval, in version PHP4.2.2 is all OK > > in version PHP 4.3.3 -> direct eval bad > > > > here cut code > > > > $s = '$ret = ibase_execute($this-

Re: [PHP] help with EVAL direct

2003-11-04 Thread CPT John W. Holmes
From: <[EMAIL PROTECTED]> > OS RedHat 9 and RedHat 7.2 > Apache 1.3.27 and Apache 2 > > I have problem with direct eval, in version PHP4.2.2 is all OK > in version PHP 4.3.3 -> direct eval bad > > here cut code > > $s = '$ret = ibase_execute($this->query, $arg_list[0], $arg_list[1], > $arg_list[2

Re: [PHP] Help with eval()

2003-05-30 Thread zavaboy
Ok, it works now! Thanks! Go visit what I'm working on at: http://zavaboy.jimbug.org/phptest/blog.php I'm working on a blog, mainly for myself... If you go there, tell me if the yellow days are clickable. Also tell me if you see red dates on the blog. I should be the only one to see those things be

Re: [PHP] Help with eval()

2003-05-30 Thread Marek Kilimajer
yes, missing semi-comma: for ($i = $aNum; eval ('return $i ' . $do . ' $bNum;'); ) the rest is up to you, I don't know what you want to do whit it Marek Kilimajer wrote: for ($i = $aNum; eval ('return $i ' . $do . ' $bNum'); ) zavaboy wrote: Hey, I'm having problems with the eval() function.

Re: [PHP] Help with eval()

2003-05-30 Thread David Grant
zavaboy wrote: I get a infinite loop and "parse error, unexpected $"... Told you it was untested.. :P -- David Grant Web Developer [EMAIL PROTECTED] http://www.wiredmedia.co.uk Tel: 0117 930 4365, Fax: 0870 169 7625 Wired Media Ltd Registered Office: 43 Royal Park, Bristol, BS8 3AN Studio: Whitt

Re: [PHP] Help with eval()

2003-05-30 Thread zavaboy
I get a infinite loop and "parse error, unexpected $"... "David Grant" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > zavaboy wrote: > > > Umm, have you tested it? It didn't work for me... > > > > > > "Marek Kilimajer" <[EMAIL PROTECTED]> wrote in message > > news:[EMAIL PROTECTED]

Re: [PHP] Help with eval()

2003-05-30 Thread David Grant
zavaboy wrote: Umm, have you tested it? It didn't work for me... "Marek Kilimajer" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] for ($i = $aNum; eval ('return $i ' . $do . ' $bNum'); ) Untested: for ($i = $aNum; eval("return (\$i " . $do . " \$bNum);");) -- David Grant Web Devel

Re: [PHP] Help with eval()

2003-05-30 Thread zavaboy
Umm, have you tested it? It didn't work for me... "Marek Kilimajer" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > for ($i = $aNum; eval ('return $i ' . $do . ' $bNum'); ) > > > > zavaboy wrote: > > >Hey, > > > >I'm having problems with the eval() function... > > > >if ($Sort == "U

Re: [PHP] Help with eval()

2003-05-29 Thread Marek Kilimajer
for ($i = $aNum; eval ('return $i ' . $do . ' $bNum'); ) zavaboy wrote: Hey, I'm having problems with the eval() function... if ($Sort == "Up") { $do="<="; } else { $do=">="; } for ($i = $aNum; eval ('$i ' . $do . ' $bNum'); ) //So.. the above line acts like: //for ($i = $aNum; $i <= $bNum; )

Re: [PHP] help with eval problems...

2002-07-06 Thread Paul Roberts
On Fri, 5 Jul 2002, Kelly Meeks wrote: > If I had this information stored in a database field, > "> > > how could I assign it to a variable and output it? you have to ?> first to leave php mode so you can do $content_output = "logo.gig"; $code = ""; eval("?>$code"); which will echo the

Re: [PHP] help with eval problems...

2002-07-05 Thread Miguel Cruz
On Fri, 5 Jul 2002, Kelly Meeks wrote: > If I had this information stored in a database field, > "> > > how could I assign it to a variable and output it? I'm not sure that you can eval() HTML. Perhaps if your cell contained: echo "" you would have better luck. Don't quote me on it though