数据表警告未知参数(表id ='sample_1')

I am using jquery.dataTables.js. When I want to search the data from database I've received this error:

Datatable warning unknown parameter (table id = 'sample_1'):requested unknown parameter '0' from the data source 1

This is my source code.

<table class="table table-striped table-bordered" id="sample_1">
     <thead>
         <tr>
             <th>ID</th>
             <th>T</th>
             <th>F</th>
             <th >L</th>
             <th >J</th>
             <th >Der</th>
             <th >G</th>
             <th >C</th>
          </tr>
     </thead>
     <tbody>

     <?php
          if(isset($_POST['submit'])){
                $searchValue='';

                if($_POST['city_name']=='a'){
                     $searchValue = $_POST['date'];
                     $myQuery = mysql_query("select * from users where date='$searchValue'");

                }
                if($_POST['city_name']=='b'){
                     $searchValue = $_POST['city'];
                     $myQuery = mysql_query("select * from users where city='$searchValue'");

                }
                if($_POST['city_name']=='c'){
                     $searchValue = $_POST['gender'];
                     $myQuery = mysql_query("select * from users where gender='$searchValue'");
                }
                if($_POST['city_name']=='d'){
                     $searchValue = $_POST['topic'];
                     $myQuery = mysql_query("select * from users where topic='$searchValue'");
                }

                //$number      =1;
                while($row = mysql_fetch_array($myQuery)    ){
                    //$id=$row['id'];
                    echo "<tr>
                                <td>"."1"."</td>
                                <td>".$row['d']."</td>
                                <td>".$row['n']."</td>
                                <td>".$row['l']."</td>
                                <td>".$row['j']."</td>
                                <td>".$row['t']."</td>
                                <td>".$row['g']."</td>
                                <td>".$row['c']."</td>

                            <tr>";
                            $number++;
                 }  
            }
     ?>
     </tbody>
</table>

I searched a lot but didn't find any solution.