Hi,
Using dreamweaver / webassist extension / Apache 2.0.59, MySQL 5.0.41, PHP 5.2.6 on a mac:
After selecting my criteria on my search page I go to a result page where I display several information from my database. I have 10 results per page and each result has field displaying the name of a website (text)
New to php mysql, I don't know how to add a hyperlink to a text from my database. In the code below on the line where I have :
<div class="WADAResultPrice"><?php echo $row_WADAcompanies["Website"]; ?></div> I would like to display the name of a website in my result page (which I manage to have) but I would also like to have the possibility to click on the name to go to the website - that is where I am stuck...
I already looked at several forum and tried the solution given which was:
<div class="WADAResultPrice"><?php echo <a href=$row_WADAcompanies["Website"]> $row_WADAcompanies["Website"]</a>; ?></div>
but the only thing I get is a blank page instead of my result page.
Anybody would know how to do that?
<table id="WADAResultsTable" border="0" cellpadding="0" cellspacing="0">
<?php do { ?>
<tr>
<td class="WADAResultsEntry"><div class="WADAResultThumbArea"><img class="WADAResultThumb" border="0" src="WA_DataAssist/images/img_160x110.gif" alt="Image Name" /></div>
<div class="WADAResultInfoArea">
<div class="WADAResultTitle"><?php echo $row_WADAcompanies["Nom"]; ?></div>
<div class="WADAResultDescription"><?php echo $row_WADAcompanies["Activite"]; ?></div>
<div class="WADAResultCommerceArea">
<div class="WADAResultCommerceButton">[ button ]</div>
<div class="WADAResultPrice"><?php echo $row_WADAcompanies["Website"]; ?></div>
<div class="WADAClearRight"></div>
</div>
</div></td>
</tr>
<?php } while ($row_WADAcompanies = mysql_fetch_assoc($WADAcompanies)); ?>
</table>
Thanks