Why won't this Array Insert into my MYSQL table?
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/12596528/how-show-multidimensional-arrays-be-inserted-into-a-mysql-table">How show Multidimensional Arrays be inserted into a MySQL table?</a>  </p>
</blockquote>



<p>I have an array. The array is multidimensional and works fine in regards to being imploded. Then when I make an attempt in order to insert the array into the database, each multidimensional array, per row. It won't go in. Only the final row inserts itself, but after trying this new code, which doesn't insert anything, I am stuck. By the way, I have lost the previous code: </p>

<pre><code>foreach ($links as $link) {
    $output = array(
        "title"       =&gt; Titles($link), 
        "link"        =&gt; $link,
        "description" =&gt; getMetas($link),
        "keywords" =&gt; getKeywords($link) 
    );
    if (empty($output["description"])) {
        $output["description"] = getWord($link);
    }
    $data[] = '"' . implode('" , "', $output) . '"';
}
mysql_query( "INSERT INTO search (title, description , keywords, link)
    VALUES (" . $data . ")" );
</code></pre>
