title: how to store php multi dimensional array data into database in their fields
body: <p>i have Multi array data like <strong>"cars name &amp; cars modal"</strong> </p>
  
  <p>Car name match with car model. both are different column in database (cars_name,cars_model). I want to store data from this array into database in their fields</p>
  
  <p><strong><em>Output:</em></strong></p>
  
  <pre><code>    Array
  (
      [car_name] =&gt; Array
          (
              [0] =&gt; Honda
              [1] =&gt; Ford Mustang
              [2] =&gt; Volvo
          )
  
      [car_modal] =&gt; Array
          (
              [0] =&gt; 2015
              [1] =&gt; 2016
              [2] =&gt; 2014
          )
  
  )
  </code></pre>
  
  <p>i want to store array values into single column in each row using "<strong>mysql</strong>". For this purpose i like query like this but it shows error.</p>
  
  <pre><code>$sql = "INSERT INTO cars_data (cars_name,cars_modal)
  VALUES ($cars_name,$cars_modal)";
  </code></pre>
  
  <p>nothing happened. But errors show like this...</p>
  
  <blockquote>
    <p><b>Notice</b>:  Array to string conversion in
    <b>E:\xampp\htdocs\car_records\modal_data.php</b> on line <b>45</b> Error: INSERT INTO cars_data (cars_name,cars_model)</p>
    
    <p>VALUES (Array,Array)<br>Unknown column 'Array' in 'field list'</p>
  </blockquote>
  
  <p><strong><em>The question is how to fix it. Please help me</em></strong></p>