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.
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.
<td><a href ="<? echo $row->courier_url; ?>"><? echo $row->courier_url; ?> </a></td>
I think this will work for you,
<td><a href ="<?=$row->courier_url; ?>"></a></td>
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.
Try:
<td><a href ="<?=$row->courier_url;?>">Link</a></td>