what is my implode problems?
<p>I want to make form where user can search certain info based on their input and choices.after all the form filling the data will be display using table..got error with my implode where it gave me warning  implode(): Invalid arguments passed in line 111 which is</p>

<pre><code>$check = implode("','", $_POST['check_list']);
</code></pre>

<p>and after that i tried tick two values on checkbox it gave me 
     mysql_fetch_array() expects parameter 1 to be resource, boolean given in line 125 which is</p>

<pre><code>while($row = mysql_fetch_array($sql)) {
</code></pre>

<p>.
     <br>
        
        </p>

<pre><code>      &lt;form method="post"&gt;
        &lt;div class="form-group"&gt;
          &lt;h3&gt;&lt;label for="usr"&gt;Carian bajet anda:&lt;/label&gt;&lt;/h3&gt;
    &lt;div class= "col-md-12"&gt;
    &lt;div class=" col-md-4"&gt;&lt;/div&gt; 

          &lt;div class=" col-md-4"&gt;
          &lt;input name="bajet" type="text" class="form-control" id="usr"&gt;&lt;/div&gt;

        &lt;/div&gt;
        &lt;div class=" col-md-4"&gt;&lt;/div&gt;
        &lt;/div&gt;&lt;br&gt;

        &lt;h3&gt;&lt;label for="sel1"&gt;Pilih negeri pilihan anda:&lt;/label&gt;&lt;/h3&gt;

        &lt;div class= "col-md-12"&gt;
    &lt;div class=" col-md-4"&gt;&lt;/div&gt; 

          &lt;div class=" col-md-4"&gt;
              &lt;select class="form-control" name="sel"&gt;
                &lt;option&gt;Kuala Lumpur&lt;/option&gt;
                &lt;option&gt;Negeri Sembilan&lt;/option&gt;
                &lt;option&gt;Pahang&lt;/option&gt;
                &lt;option&gt;Perak&lt;/option&gt;
                &lt;option&gt;Terengganu&lt;/option&gt;
                &lt;option&gt;Selangor&lt;/option&gt;

              &lt;/select&gt;
           &lt;/div&gt;

           &lt;div class=" col-md-4"&gt;&lt;/div&gt;
        &lt;/div&gt;&lt;br&gt;


          &lt;br&gt;
          &lt;h5&gt;&lt;label for="check"&gt;Senarai Pra-perkahwinan:&lt;/label&gt;&lt;/h5&gt;
       &lt;center&gt; &lt;div class="checkbox"&gt;
          &lt;label class="checkbox-inline"&gt;  &lt;input type="checkbox"name="check_list[]"  value="Jurufoto"&gt;&lt;label&gt;Jurufoto&lt;/label&gt;&lt;/label&gt;
          &lt;label class="checkbox-inline"&gt;  &lt;input type="checkbox"name="check_list[]"  value="Butik"&gt;&lt;label&gt;Butik&lt;/label&gt;&lt;/label&gt;
          &lt;label class="checkbox-inline"&gt;  &lt;input type="checkbox"name="check_list[]"  value="Hiburan"&gt;&lt;label&gt;Hiburan&lt;/label&gt;&lt;/label&gt;
          &lt;label class="checkbox-inline"&gt;  &lt;input type="checkbox"name="check_list[]"  value="Kad Kahwin"&gt;&lt;label&gt;Kad Kahwin&lt;/label&gt;&lt;/label&gt;
          &lt;label class="checkbox-inline"&gt;  &lt;input type="checkbox"name="check_list[]"  value="Katering"&gt;&lt;label&gt;Katering&lt;/label&gt;&lt;/label&gt;
           &lt;br&gt;


        &lt;/center&gt;
                &lt;div class="col-md-4"&gt;&lt;/div&gt;

                &lt;div class="col-md-4"&gt;
                    &lt;button class="btn btn-success btn-sm" name="search"&gt;Search&amp;nbsp;&lt;span class="glyphicon glyphicon-search"&gt;&lt;/span&gt;&lt;/button&gt;&lt;br&gt;&lt;br&gt;
                &lt;/div&gt;

                &lt;div class="col-md-4"&gt;&lt;/div&gt;
            &lt;/div&gt;


    &lt;/form&gt;
    &lt;table class="table table-bordered"&gt;
                &lt;thead&gt;
                    &lt;tr&gt;

                        &lt;th&gt;Jenis&lt;/th&gt;
                        &lt;th&gt;Vendor&lt;/th&gt;
                        &lt;th&gt;Negeri&lt;/th&gt;
                        &lt;th&gt;No.&lt;/th&gt;
                        &lt;th&gt;Pakej&lt;/th&gt;
                        &lt;th&gt;Harga&lt;/th&gt;
                        &lt;th&gt;&lt;/th&gt;
                    &lt;/tr&gt;
                &lt;/thead&gt;
                &lt;tbody&gt;
                &lt;?php
                $check = array();
             $budget = $_POST['bajet'];
             $select = $_POST['sel'];
               $check = implode("','", $_POST['check_list']);
                 $finalCheck = "'".$check."'";
                 $check = array();

           if (isset($_POST['search'])) {
            mysql_select_db($database_conn, $conn);

          $sql = mysql_query(" SELECT * 
             FROM vendor 
                RIGHT JOIN item 
                  ON vendor.v_id=item.v_id
                    WHERE item.harga &lt;= '%". $budget . "%' 
                      AND vendor.state = '%". $select ."%'
                        AND vendor.type IN ('%". $finalCheck ." %')" );
                        while($row = mysql_fetch_array($sql)) {
    ?&gt;
                &lt;tr&gt;

                        &lt;td&gt;&lt;?php echo $row['type'] ?&gt;&lt;/td&gt;
                        &lt;td&gt;&lt;?php echo $row['companyName'] ?&gt;&lt;/td&gt;
                        &lt;td&gt;&lt;?php echo $row['state'] ?&gt;&lt;/td&gt;
                        &lt;td&gt;&lt;?php echo $row['contact'] ?&gt;&lt;/td&gt;
                        &lt;td&gt;&lt;?php echo $row['harga'] ?&gt;&lt;/td&gt;
                        &lt;td&gt;&lt;?php echo $row['pakej'] ?&gt;&lt;/td&gt;
                        &lt;td&gt;&lt;a href="index.php?v_id=&lt;?php echo $row['v_id']?&gt;"&gt;View Package&lt;/a&gt;&lt;/td&gt;


                    &lt;/tr&gt;

                    &lt;?php }
                } 
                print_r($_POST['check_list'] );
                ?&gt;

                &lt;/tbody&gt;
            &lt;/table&gt;
    &lt;/div&gt;
</code></pre>