hi. am new to php. got a problem with inserting data into another table in mysql database afta.
Here is the code
<td><form action="ProCollegePrograms.php" method="post">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><span class="textblack">College Code</span><span class="required"><font color="#CC0000">*</font></span><br></td>
<td><input name="CollegeCode" type="text" class="required username" id="CollegeCode" size="40" minlength="2" ></td>
<tr>
</
</tr>
<tr>
<th width="50%" height="39">Check off the programs you offer</th>
<th width="50%">Course Name </th>
</tr>
<?php
$sql = "SELECT course_no,Name FROM courses ";
$result = mysql_query($sql) or trigger_error(mysql_error(),E_USER_ERROR);
while($row=mysql_fetch_array($result))
{
$Name=$row['Name'];
?>
<tr>
<td><input type="checkbox" name="Name[]" value="<?php echo $Name; ?>" align="middle"/></td>
<td><?php echo $Name; ?>
<td> </td>
</tr>
<?php
}
?>