Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Getting multiple rows of data on a form to a database in 1 click

Status
Not open for further replies.

flugh

Technical User
Aug 23, 2002
655
US
I want to simplify my current working form. Right now, it queries mysql server, works through the $result producing a <form> with <input>s and then a submit button that has the ?record=$rowid in the action. That all works. What I'd like is to get this down to a single form and a single submit button.

The schema on the table is:
ID - duh :)
truck - related to ID in dat_trucks table
ddate - the date in YYYY-mm-dd format (named it ddate back in Access days :))
location - an enum with a few locations the trucks will be at
activity - an enum with a few things like &quot;worked&quot; and &quot;idle&quot;

I think a loop similar to what I am already doing, but tacking the ID of the current trk_use row into the form field names somehow. I'm right on the verge of getting this, but I have to admit, I'm not a real bright person. I good practical example would be nice (surely there's a good how-to link somewhere, I just can't seem to find it!).

Thanks in advance for any help, constructive criticism, or entertaining abuse!

----
JBR
 
*sigh* I'm slipping. It seems I asked the same question back in thread434-728084 . Got an excellent answer too. It took me about 10 minutes to implement the suggestion made there.

Ok, at least make the abuse entertaining ;-)

----
JBR
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top