I have to insert links to database. But they should be opened as a photo on my web?
<?php
if(isset($_SESSION['logged_in']) )
{
$selektimi = 'SELECT titulli ,foto , pershkrimi FROM portofolio';
$result = mysqli_query($conn, $selektimi) or die ('invalid query:'. mysqli_error($conn));
while($row = mysqli_fetch_row($result))
{
list( $titulli, $foto, $pershkrimi)=$row;
echo nl2br('<h2>'.$titulli.'</h2>');
echo '<img src="'.$row['$foto'].'">';
echo nl2br('<p>'.$pershkrimi.'</p>');
echo'<hr>';
}
}
?>