Hi , hope you can help i have this code

<?php
mysql_connect("localhost","x","x");
mysql_select_db("x");
$result = mysql_query("SELECT * FROM x") 
or die(mysql_error());  

echo "<table class = feature >";
echo "<tr> <th></th> <th></th> <th></th> </tr>";

while($row = mysql_fetch_array( $result )) {
	
	echo "<tr><td>";
	echo $row['Date'];
	echo "</td><td>";
	echo $row['Title'];
	echo "</td><td>";	 
    echo $row['News'];
	echo "</td></tr>";
} 
echo "</table>";
?> <p>

of which everything is filled in correctly but i now have a field in the database called link, i want the Title row text to link to the link field in the database.

Hope you can help

Thanks in advance

just use ordinary link tag

echo "<a href='".$row['Title']."'>".$row['Title']."</a>";

thanks it worked perfect and now i understand how that works, probably not difficult to you but just learning. I will mark as solved

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.