I have a php page that has blobs from my database
i need 404 image to display when there is no blob
https://i.stack.imgur.com/cZc34.jpg https://i.stack.imgur.com/1xU1B.jpg
<?php
$host = "localhost";
$username = "root";
$password = "12345678";
$db = "sis";
$PicNum = $_GET["PicNum"];
mysql_connect($host,$username,$password) or die("Impossível conectar ao banco.");
@mysql_select_db($db) or die("Impossível conectar ao banco.");
$result=mysql_query("SELECT * FROM usuarios WHERE id=$PicNum") or die("Impossível executar a query ");
$row=mysql_fetch_object($result);
Header("Content-type: image/gif");
echo $row->avatar;?>