faqts : Computers : Programming : Languages : PHP

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

3 of 3 people (100%) answered Yes
Recently 3 of 3 people (100%) answered Yes

Entry

How do I change this into a link? <?php echo $row_rsLocations ['CODE'] ; ?>

Mar 19th, 2008 22:08
ha mo, John Burden, B. Johnson, http://www.php.net/manual/en/language.types.string.php


<? echo "<a href=\"http://{$row_rsLocations['CODE']}\">{$row_rsLocations
['CODE']}</a>"; ?>  
from the doc's
When a string is specified in double quotes or with heredoc, variables 
are parsed within it. 
There are two types of syntax, a simple one and a complex one. The 
simple syntax is the most common and convenient, it provides a way to 
parse a variable, an array value, or an object property. 
The complex syntax was introduced in PHP 4, and can be recognised by 
the curly braces surrounding the expression. 
http://www.php.net/manual/en/language.types.string.php 
You should also look at 
http://www.php.net/manual/en/function.sprintf.php
http://www.tantofa.com
http://www.fantofa.com
http://www.mantofa.com
http://www.tanpola.com
http://www.tampola.com
http://www.yamot.com
http://www.mozmar.com
http://www.templatestemp.com