Check for duplicates when importing CSV in PHP
<p>If i get data from a form,i can use the below code to check duplicates but when i import a csv file how do i check duplicates.</p>

<p>Here in select (=) will do for only one value but in excel if there are 25 rows how do i do it?</p>

<pre><code>$check = mysql_query("SELECT * FROM table WHERE x= '$Thd'");

if ($x)
{
    if(mysql_num_rows($check) != 0)
    {
    header('location:nw.php?msg=cat exists');
    }
    else
    {

    )";
</code></pre>

<p>Thanks in advance. Any help is appreciated.</p>
