Comparing the results from a database to see if they're the same
<p>Basically I'm trying to find out how I'd go about comparing 5 sets of results to see if they haven't been selected before in the database, currently I'm selecting 5 random locations and then writing it to a database now what I need to do is compare the results currently being echoed are not the same as previously displayed in the last 5 days</p>

<pre><code>// Insert $ouput in to the Database
  $sql5 = "INSERT INTO Already_Selected (AL_S)
  VALUES ('$text4'), ('$text3'), ('$text2'), ('$text1'), ('$text')";
  if ($conn-&gt;query($sql5) === TRUE) {
      echo "";
  } else {
      echo "Error: " . $sql5 . "&lt;br&gt;" . $conn-&gt;error;
  }
</code></pre>

<p>This is how I'm inserting the locations in to the database.</p>

<p>If anyone can guide me in some way of doing this id be most appreciative. I am new to php</p>