View Single Post
Old 08-19-2009, 03:51 PM   #1 (permalink)
Hempsworth
The Visitor
 
Hempsworth's Avatar
 
Join Date: Jul 2008
Location: Hereford, UK
Posts: 4
Thanks: 0
Hempsworth is on a distinguished road
Default Save inputs (text, textarea) into database, with same names?

This is my first PHP script, so please bear with me! :)

I have a table, with each row representing a row from a database table. Each of the fields in the table are editable, so when the user edits a couple of them and hits 'Save', the appropriate ones need to be saved.

As you can see from this pastebin snippet, users can create new rows and save them.

http://wordpress.pastebin.com/d1fd7e116

I need to be able to save the appropriate items into the database; I have commented in where the problem lies!

At the moment, it's just saving the last outputted row.
Send a message via MSN to Hempsworth Send a message via Skype™ to Hempsworth
Hempsworth is offline  
Reply With Quote