Hello, I'm making a website in php and html, linked to a database in mysql.
And I have a news table in the database, with the idartigos, title, text and link fields.
The link is passing in text and I would like it when someone sees the news on the site, it becomes a link, so that the person clicks. Can someone help me?
$query = mysqli_query($mysqli, "SELECT * FROM artigos WHERE activo = 1 ORDER BY idartigos DESC");
while($row_artigos = mysqli_fetch_array($query))
{
echo "<br><br>";
echo($row_artigos[1]);
echo "<br>";
echo($row_artigos[2]);
# tirar # qdo tiver link echo($row_artigos[3]);
echo "<br><br>";