I just started MySQL, and I'm currently in the basics, the real basics, where I only know how to connect to my own localhost database, create a database, create tables, and insert values manually to database tables. However, when I tried doing some HTML forms using PHP scripts to add new rows on a database table, the information from the form gets inserted more than once, sometimes even 5 times, exactly, and only in one submission... Does anyone know SQL here? Using the SQL's "INSERT INTO" statements manually, as in directly in the PHP script, without using HTML forms to collect manually-submitted user info, I was able to create only one database entry to a table... I've set a primary key, but it's only for the ID of one table, and if I set more than one primary key PHP creates an error saying multiple primary keys are not allowed... Anyway let me sum it up for those who understands PHP and MySQL very well:
I need help making a script that will use SQL's "INSERT INTO (...) VALUES (...) " statements, which the value is collected from a HTML form and submitted once by a user... and only ends up inserting 1 entry in a database table, and not inserting 2-6 entries at once... Thanks!