how to insert $ command in href fucntion to make it a link ?
Posted: Tue Jul 08, 2008 6:25 am
hey guys...do anyone know how to write a href function code where by the text msg is actually my $ command ?
here's some of the code
<?php
.
.
.
.
.
.
$user = $_COOKIE['ID_my_site'];
$result = @mysql_query("SELECT title FROM pix WHERE pid ='$user'");
if (!$result) {
exit('<p>Error retrieving patient list from database!<br />'.
'Error: ' . mysql_error() . '</p>');
}
while ($list = mysql_fetch_array($result))
{
<a href="newpage.php">"'.$list['title'].'"</a>; <<<<<<------ THIS PART !!
}
?>
i know the href code above is wrong...so how do i create a href code where the msg is my $command function..and by the way href function doesnt seem to work out inside <?php ?> area...
HELP ME!
Azhan
________________________
http://www.productcoverdesign.com- "Cheapest E-cover Design"
here's some of the code
<?php
.
.
.
.
.
.
$user = $_COOKIE['ID_my_site'];
$result = @mysql_query("SELECT title FROM pix WHERE pid ='$user'");
if (!$result) {
exit('<p>Error retrieving patient list from database!<br />'.
'Error: ' . mysql_error() . '</p>');
}
while ($list = mysql_fetch_array($result))
{
<a href="newpage.php">"'.$list['title'].'"</a>; <<<<<<------ THIS PART !!
}
?>
i know the href code above is wrong...so how do i create a href code where the msg is my $command function..and by the way href function doesnt seem to work out inside <?php ?> area...
HELP ME!
Azhan
________________________
http://www.productcoverdesign.com- "Cheapest E-cover Design"