Home     Articles & Projects     Products & Web Services     Forum

Universal redirect

Hi David

I am working on a site where the links and link text are dynamic. I want to place the redirect script, but I can seem to get it right

This is the current link:

Visit <a href="<?php echo $row_rstGetMerch['merch_url']; ?>" target="_blank"><?php echo $row_rstGetMerch['name']; ?></a>

How would I adapt
<?php print "<p><a href='jump.php?id=".jumplib_getID("http://www.example.com/")."'>example.com</a></p>";?>

to include the variables?
kelly

Hi Kelly, Try something like

Hi Kelly,

Try something like this:

<?php
print "Visit <a href='jump.php?id=".jumplib_getID($row_rstGetMerch['merch_url'])."'>$row_rstGetMerch['name']</a>";
?>

Cheers,
David.

Thanks David I had to take

Thanks David
I had to take out the ' ' from the brackets as I was getting t_enc errors, but works a treat
ta V. much
K