|
Posted by Chris Jones on 04/18/07 07:57
On 16 Apr, 13:24, "Kimmo Laine" <s...@outolempi.net> wrote:
> "Toby A Inkster" <usenet200...@tobyinkster.co.uk> wrote in messagenews:p72cf4-4kp.ln1@ophelia.g5n.co.uk...
>
> > Chris Jones wrote:
Cracked it.... the easiest way surely is just
$eid = $_GET['EID'];
$href = str_replace("{$eid}","{$eid}",db_result($qry,0,"href");
:-)
>
> >> Is it possible to force PHP to attempt to resolve any embedded $vars
> >> within a string?
>
> > No.
>
> Wrong. It is possible with eval(), but it's strongly advaised not to use
> this approach:http://fi2.php.net/manual/en/function.eval.php
>
> --
> "Ohjelmoija on organismi joka muuttaa kofeiinia koodiksi" - lpkhttp://outolempi.net/ahdistus/- Satunnaisesti päivittyvä nettisarjis
> s...@outolempi.net | rot13(x...@bhgbyrzcv.arg)
Navigation:
[Reply to this message]
|