|
Posted by Chris Jones on 04/16/07 10:02
If i use
<?
$x = 4 ;
echo "This is the value of x: {$x}" ;
?>
i will obviously get the output
This is the value of x: 4
But when i have a string, in an SQL varchar field, such as
kra.php?EID={$eid}
I can then do $href = db_query($qry,0,"href") to get the SQL data into
$href, but when i echo $href, the $eid comes out as plain-text and
doesn't resolve to the current value of $eid.
Is it possible to force PHP to attempt to resolve any embedded $vars
within a string?
i.e. so when i output $href, i get
kra.php?EID=1
Thanks
Navigation:
[Reply to this message]
|