title: If mysql table contains data , update it , if not insert the data (PHP)
body: <p>i'm new to php . i'm just wondering which PHP script can detects if a MySQL database's table contains data . If yes , it will update the data with the submitted form data. If not(blank) it will insert the form data into it.</p>
  
  <p>I know how to insert data using php just wondering how can i CHECK if data exist in a table.</p>
  
  <p>Thanks and have a nice day .</p>