MYSQLI not putting data into the database
<pre><code>&lt;?php 

    $data = array(

    0 =&gt; 'Natural Chlid 1',
    1 =&gt; 'Natural Chlid 2',
    2 =&gt; 'Natural Chlid 3'
    ); 
    $link = mysqli_connect('localhost', 'root', '', 'mutli_page_form');

    if (mysqli_connect_errno()) {
        printf("Connect failed: %s\n", mysqli_connect_error());
        exit();
    }

    $serialized = mysqli_real_escape_string($link, serialize($data));

    $result = mysqli_query($link, "INSERT INTO wills_children ('will', 'children') VALUES (123, '$serialized')");

    if (!$result) {
        printf("Error message: %s\n", mysqli_error($link));
    }

?&gt;
</code></pre>

<p>this doesn't seem to send the data to the database the error im getting is:</p>

<pre><code>You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''will', 'children') VALUES (123, 'a:3:{i:0;s:15:\"Natural Chlid 1\";i:1;s:15:\"N' at line 1 
</code></pre>
