Good day guys.!
Just need a little help on how to create a php function that will loop all the rows with a text box in a table(name="gradetbl") in column 1 and save the value of the text box into mysql database when ok button is click. This is the content of the table loaded from mysql.
]
<table name="gradetbl" border="1">
<tr>
<td width="50"> RATING</td>
<td width="50"> SUBJECT CODE</td>
</tr>
while(&row=mysql_fetch_array($reclooptbl)){
<tr>
<td><label><input name="txtrating" type="text" id="txtrating size="24>
<td align="center"><?php echo $reclooptbl['courseid']; ?></td>
</tr>
}
When the user click the ok button, I want to update the 'tbl_grade' in mysql where 'courseid' = $reclooptbl and save the value of the txtrating in the current rows in the rating field of the 'tbl_grade'.
Im still stuck how to do this. Maybe i will assign the name of the txtrating with a counter incremented by 1 to get its data.
Pls help guys.
Thank you for giving time.
God bles us all.