Simply leave a reply here and we will try and answer any questions you have. If you don’t want everyone to see your question/query, or if you would like a quote, please either visit our contact page here, or email us on this address: enquiries@bakerdesigns.co.uk
-
Recent Posts
Archives
Categories
Web Design Haliax Blog Pages
Create hyperlink in PHP from result?
I don’t know exactly what you mean, but try this…
***********************************************
//Connect to DB
$result=mysql_query(“SELECT * FROM __table__”);
while($row=mysql_fetch_array($result)){
//Store your text as a variable
$text = $row["name"];
//For every result you get display a link – Double Quotes are very important in echo!!!
echo “<a href=’view.php?v=$text |OR| $text.php’ title=’$text’>$text</a>”;
}
*****************************************************