I have a table called result
in mySQL. I want to insert a multiple rows one single click. Basically teacher is putting student result in to data base through php:
table: result
entity: result, student_id
Your php script will need to construct the insert sql in the following manner (I assume your table T1 has two fields F1 and F2, and the input is v11 v12 v21 v22 etc)
| |||
|
foreach
loop if you're not going to be inserting very many rows)... but please try to be clearer when asking your question. Your use of the term "single click" is very unhelpful as you seem to be discussing PHP and MySQL, neither of which register "clicks" – Ben D Jun 10 '12 at 15:10