i am having an issue while inserting from a textarea into mysql.i have a form which contains multiple textarea.`form.php`

```
<form name="form1" method="post" action="insert.php">
<thead>
                  <tr>
                    <th>&nbsp;</th>
                    <th>Center Name</th>
                    <th>User Name</th>
                    <th>Password</th>
                    <th>IP Details</th>
                </tr>   
<tr>
                     <td valign="top">1</td>
                     <td valign="top">ABCE</td>
                     <td valign="top">abce</td>
                     <td valign="top">abce123</td>
                     <td valign="top">
                        <textarea rows="4" cols="40"  name="ip_details[]">59.162.181.45,27.251.106.75,59.162.182.155</textarea><br/>
                        </td> 
</tr>   
<tr  class="alt-row">
                     <td valign="top">2</td>
                     <td valign="top">XYZ</td>
                     <td valign="top">xyz</td>
                     <td valign="top">1234</td>
                     <td valign="top">
                        <textarea rows="4" cols="40"  name="ip_details[]">54.23.87.32,198.12.65.64,34.56.43.12</textarea><br/>
                         </td>
                    </tr>

<tr>
                    <td colspan="5" align="center">
<input type="submit" name="submit" id="submit" value="Update" /></td>
                </tr>
</form>

```

i want to insert these array values into a database which will enter the ip\_details[0] to ABCE row and ip\_details[1] to XYZ row in database.
when i do 

```
$a=$_POST['ip_details'];

$b= $_POST['ip_details'][0];
echo "$b";

$c= $_POST['ip_details'][1];
echo "$c";

```

it show me values of ip\_details from ABCE and XYZ.

i want to add these array values of ip in the ipdetails column in database.id\_center(primary key)my table structure.show create table `table_name`

```
CREATE TABLE `center_listt` (
id_center int(10) NOT NULL AUTO_INCREMENT,
center_name varchar(10) NOT NULL,
user_name varchar(10) NOT NULL,
password varchar(10) NOT NULL,
ipdetails varchar(30) NOT NULL,
PRIMARY KEY (`id_center`)
) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=latin1

id_center  center_name  user_name  password  ipdetails
  1         ABCE         abce       1234      59.162.181.45,27.251.106.75,59.162.182.155
  2         XYZ          xyz        1234      54.23.87.32,198.12.65.64,34.56.43.12   

```

i cant find a way to do that.all i mange to do is echo the array in my browser.need help in inserting in the db like the same