How can I change post array value to allow insertion as Unique IDs (columns) mysql
14:01 30 Oct 2015
    $result = mysqli_query($link, "INSERT INTO  mytable...

        `friends`,
        `friend1`,
        `friend2`,
        `friend3`,                                          
                VALUES (NULL,   '$friends',
                                '$friends[0]'
                                '$friends[1]'
                                '$friends[2]'

Using cloneya.js to duplicate fields, I get an array value for a set of 3 names. Posting to mysql, I get three names in the in the first field(friends) but only the first,second and third letter of the first name in the subsequent fields (friend1-3). How can I insert each name to the separate fields?

php