william6789
Technical User
Hi,
There is one code syntax I could not run and I do not understand how it works yet? I copy it from one booke named "PHP and MySQL Web Development" edited by Luke Welling and Laura Thomson, Page 553. Is it a typo?
Function do_html_URL($url, $name)
{
// outpur url as a link
?>
<a href="<?=$url?>"><?=$name?></a><br>
<?
}
This function could not give me a link , and I could not understand the syntax of <?=$url>.
Can someboyd give some ideas about it?
Thanks
William
There is one code syntax I could not run and I do not understand how it works yet? I copy it from one booke named "PHP and MySQL Web Development" edited by Luke Welling and Laura Thomson, Page 553. Is it a typo?
Function do_html_URL($url, $name)
{
// outpur url as a link
?>
<a href="<?=$url?>"><?=$name?></a><br>
<?
}
This function could not give me a link , and I could not understand the syntax of <?=$url>.
Can someboyd give some ideas about it?
Thanks
William