hi,i am facing problem about when i choose more than 2 selected data from the multiple drop-down list ,there onli have 1 data successfully insert into database.
if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "form1")) {
$insertSQL = sprintf("INSERT INTO c_register (id, c_code, c_name, p_name, inctructor_name, c_category, c_group, c_credit_h, c_total_learning_h, c_pre_requirement, c_synopsis, c_reference, c_examination_mark, c_coursework_mark) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)",
GetSQLValueString($_POST['id'], "int"),
GetSQLValueString($_POST['c_code'], "text"),
GetSQLValueString($_POST['c_name'], "text"),
GetSQLValueString($_POST['p_name'], "text"),
<form action="<?php echo $editFormAction; ?>" method="post" id="form1">
<table>
<tr valign="baseline">
<td align="right">Id:</td>
<td><input type="text" name="id" value="" size="32" /></td>
</tr>
<tr valign="baseline">
<td align="right">C_code:</td>
<td><input type="text" name="c_code" value="" size="32" /></td>
</tr>
<tr valign="baseline">
<td align="right">C_name:</td>
<td><input type="text" name="c_name" value="" size="32" /></td>
</tr>
<tr valign="baseline">
<td align="right">P_name:</td>
<td><select name="p_name" multiple="multiple" size="4">
<option value="" ></option>
<?php
do {
?>
<option value="<?php echo $row_Recordset2['p_name']?>"><?php echo $row_Recordset2['p_name']?></option>