title: condition if i do not have image in blob to avoid error
body: <p>i get an error if the user does not have profile image so gives me this error:</p>
  
  <pre><code>` Notice: Undefined variable: type in `
  Notice: Undefined variable: data in 
  </code></pre>
  
  <p>but when submit an image no error found so what the solution if not submit any image to display</p>
  
  <pre><code>   $q=mysql_query("SELECT * FROM blob_image WHERE user_id='".$user_data['id']."' ");
    if($q==true){
    while($r=mysql_fetch_assoc($q)){
        $data=$r['image'];
        $type=$r['ext'];
            }
        echo '&lt;img src="data:image/'.$type.';base64,'.base64_encode( $data ).'"/&gt;';}
  </code></pre>