Topic awaiting preservation: Mysql and php with multiple entrys (Page 1 of 1) |
|
---|---|
Paranoid (IV) Inmate From: |
posted 01-06-2004 17:27
Ok I have a database wit hthe coloums Rank,Name,Block,Home, ID code: $query = mysql_query("SELECT * FROM staff WHERE block = '$block' ORDER BY 'block'") or die(mysql_error());
|
Maniac (V) Mad Scientist From: 100101010011 <-- right about here |
posted 01-06-2004 17:34
The issue here is mainly an HTML one. |
Maniac (V) Inmate From: under the bed |
posted 01-06-2004 17:54
Rhather than use a hidden field to state the ID, I would append the ID to the name of each field. That way, each input has a unique name, and you can parse the name string to get the ID when entering the info back in to the database. |
Paranoid (IV) Inmate From: |
posted 01-06-2004 18:01
How would I then incorporate the updateing of table... in one query then? |
Paranoid (IV) Mad Scientist with Finglongers From: Germany |
posted 01-06-2004 18:28
you can't. You'll have to make serveral update queries. |
Maniac (V) Inmate From: under the bed |
posted 01-06-2004 22:22
yeah, run a loop to query the DB for each ID. |