Hi all,
Funny thing happening.
When submit a student registration, the following happens in my course_student table:
| sno | cid | year | fmark|
| correct number is inserted| Array | 2013 | |
Why would the word 'Array' appear and not the actual course that was selected?
Coding for the drop-down list:
Language: PHP
<select multiple name="cid[]">';;
while ($resultCourses = mysql_fetch_array($courses_query))
{
echo ';<option value="';.$resultCourses[';cid';].';">';.$resultCourses[';cid';].'; - ';.$resultCourses[';cname';].';</option>';;
}
echo ';</select>';
Coding for insert
Language: PHP
$insert_sql2="INSERT INTO course_student (sno, cid) VALUES (';$sno';, ';$cid';)";
Any ideas anyone?