"Sugapablo" <ru********@sugapablo.com> wrote in message
news:vm************@corp.supernews.com...
I have the following data in a MySQL database:
<a href="<?php echo $server; ?>Sugapablo-Stick_It_To_The_Man.mp3"
let's call it $row[0].
when I echo $row[0], the php code is shown as opposed to the value of
$server.
How can I get the value of $server to appear? str_replace?
--
Sugapablo
------------------------------------
http://www.sugapablo.com <--music
http://www.sugapablo.net <--personal
have you made sure your data is safe? If the data is not safe and you
execute it you leave yourself wide open for problems... However... if I make
the assumption that your data is safe and you want to execute/evaluate the
contents of $row[0] as if it were a real function you could try something
like this:
<?
$row[0];
?>
or
<?
$commandString=$row[0];
$commandString;
?>
That should do it... if not, you might need to use html_entity_decode, for
example:
<?
$commandString=html_entity_decode($row[0]);
$commandString;
?>