Quote:
Originally posted by abc123
return it where? you don't have a function? you can't "return" anything without a function...
|
You're right, I simply mean that it returns the value to the script from POST. When you hit 'submit', the script calls on itself to validate the form input and then take those values and do something with them. In this case, it loops the array through MySQL's DELETE command to delete each row you've selected, with the value of $row_id.
Quote:
also, naming a html object with square brackets is considered bad form...
|
Actually, I gleaned that bit from a book on PHP/MySQL that I've got, if there is another way of doing it I'd gladly learn. I'm not a professional PHP programmer.
Quote:
and naming a bunch of html objects with the same name is also not a great idea.. hmm.
|
?
Quote:
what are you trying to achieve?
|
Exactly what the script does now; gives you a dynamic table with a selection of rows from MySQL 'SELECT' and allows you to delete those rows from the database. I also have a similar script that does the same thing but gives the user the ability to actually update the database based on new data, using basically the same method.
This is all part of a website I'm putting together for coworkers to access / modify a database of products.