title: Next statement in a While Loop with PHP
body: <p>Ok i have a while loop function in my site that pulls in excel documents and parses them to the database i want to check for duplicates and if duplicate skip it:</p>
  
  <pre><code>$content = file($selectfile1);
  
  $posted_content = array();
  list($rownum, $row) = each($content);
  $posted_content[0] = explode(",", $row);
  array_push($posted_content[0], "ID");
  $count = 0;
  // iterate each row (1 post)
  while (list($rownum, $row) = each($content))
  {
      $count++;
  
      $cols = "orderid, created_at, updated_at, notification_type, radius, available, expiration, ";
      $vals = "";
      $cols2 = "equipment_id";
      $vals2 = "";
  
  ....{parsing data)...
  }
  </code></pre>
  
  <p>i want to write in a script that checks to see if the record is a duplicate and if not enter it.</p>
  
  <pre><code>$sql25 = "SELECT * FROM notifications WHERE origin =" . $origin_id . " user_id =12039";
  $rs25 = $conn-&gt;Execute($sql25);
  if($rs25-&gt;RecordCount() == 1 || $rs25-&gt;RecordCount() &gt;= 1)
      {
  
  
  
  here is where i need a command. Can you use? next()
  --------------------------------------------------
  
  
      }
  else
  {
           Insert query
      }
  </code></pre>