how to get $link working?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
m2babaey
Forum Contributor
Posts: 364
Joined: Sun May 20, 2007 9:26 am

how to get $link working?

Post by m2babaey »

hi
i'm again with parse errors. How should the code below be to work?

Code: Select all

<?php 
$link="http://adsense.com/clicks.php";

?>
<a href=<? php $link  ?> > <td bgcolor="#FFFFFF">
<font color="#008000" onmouseover=" " > title  </font><br>
<font color="#008000" >description</font><br>
<font color="#008000" >  displayurl</font>
</td></a>
User avatar
iknownothing
Forum Contributor
Posts: 337
Joined: Sun Dec 17, 2006 11:53 pm
Location: Sunshine Coast, Australia

Post by iknownothing »

Replace:

Code: Select all

<a href=<? php $link ?> > <td bgcolor="#FFFFFF">
with

Code: Select all

<a href="<?php echo $link; ?>"><td bgcolor="#FFFFFF">
Post Reply