[eluser]itz4mesays[/eluser]
Please how can i insert with the values shown in the attached image into my database.
Here is the look of the view and how can i get the colored values inserted into my database? I appreciate your response. Thanks for stopping by to read this.
echo form_open('student/add_courses');
//echo"<form method='post' name='form' id='form' acti confirmdelete();'>";
echo '<tr valign="top" >';
//echo "<th width='50' align='center'><input id='delete' type='submit' name='delete' value='x'/></th>";
echo '<th>Course Code</th>';
echo '<th>Course Title</th>';
echo '<th>Course Unit</th>';
echo '<th>Course Status</th>';
echo '<th>Level</th>';
echo '<th>Semester</th>';
echo '<th></th>';
echo '</tr>';
foreach ($ret as $key => $row1) {
echo '<tr valign="top">';
echo '<td align="center">'.
$row1['course_code'].'</td>';
echo '<td align="center">'
.$row1['course_title'].'</td>';
echo '<td align="center">'.
$row1['course_unit'].'</td>';
echo '<td align="center">'.
$row1['course_status'].'</td>';
echo '<td align="center">'.
$row1['level'].'</td>';
echo '<td align="center">'.
$row1['semester'].'</td>';
echo '<td align="center">'.anchor('student/delete_courses/'.$row1['id'], '<img src="../images/error_.jpg" width="20" height="20"/>').'</td>';
echo '</tr>';
}
echo '</table>';
echo"</form>";
//End of if statement
}