title: Default Profile Image after delete current profile image in PHP
body: <p>I have a photo upload script. In general everything is similar to general concepts. Also it is similar to Facebook's profile image logic. Differently I set user's profile picture by latest uploaded image. More clearly;</p>
  
  <p>Steps:</p>
  
  <ol>
  <li>user uploads profile picture</li>
  <li><p>he/she can see the picture in some criteria comes from Mysql : <code>ORDER BY add_date DESC</code> so newest picture can fetched by php</p></li>
  <li><p>Also I have a delete image button. If I use Mysql's <code>DELETE</code> keyword because of <code>ORDER BY DESC</code> newest picture is changing.</p></li>
  <li><p>How can I set default picture after I click delete image button</p></li>
  </ol>
  
  <hr>
  
  <p><img src="https://i.stack.imgur.com/n3Cel.jpg" alt="enter image description here"></p>
  
  <p>as you can see from picture user 5 has added 3 different images in three different time. 
  mysql query is : <code>SELECT path FROM profile_image WHERE user_id = ".$_SESSION['SES_USER_ID']." ORDER BY add_date DESC;"</code> showing picture to user and for fetching. earliest date is user's active profile image. (June 28 )</p>
  
  <p>if I delete June 28, June 27's photo will be active profile image, not the default profile image. </p>
  
  <p>How can I set default image?</p>