title: Php & mysql if table is empty
body: <p>I have this section of cod:</p>
  
  <p>how i can stop this section</p>
  
  <pre><code>for($i=0; $i&lt;$n-1 ; $i++) {
      mysqli_query($con,"INSERT INTO text (ID, TXT) 
          VALUES ('$id', '$sir[$i]')");
              $id++;         
  }
  </code></pre>
  
  <p>if table isn't empty ?</p>