Reputation:
I want to display my data with a link functionality inside the php tag
<td><a href ="<? print $row->courier_url;?>"></a></td>
this is my code, Its not working.
Upvotes: 0
Views: 478
Reputation: 4142
<td><a href ="<? echo $row->courier_url; ?>"><? echo $row->courier_url; ?> </a></td>
Upvotes: 1
Reputation: 4786
First off, remove the space between href =
so it's href=
. Your php code is actually valid, does $row->courier_url
actually print anything? How is $row
being defined?
Also, don't use shorthand <?
php tags use the full <?php
. It's bad practice to use the shorthand version.
Upvotes: 0
Reputation: 701
I think this will work for you,
<td><a href ="<?=$row->courier_url; ?>"></a></td>
Upvotes: 0