Hi,
I am making a form for editing the rows in a table. It displays each row
as a row in a table(structure id tinyiny,name varchar(30) ), with the
value inside a textbox so it can be changed. When doing the $submit to
MySQL, I need do this:
for($count=0;$count<=$i;$count++)
{
$current_id = $$count.-id;
$current_name = $$count.-name;
$sql = "UPDATE committee_names SET name ='$current_name' WHERE
committee_id = '$current_id'"
$result = mysql_query($sql);
};
Each time a record is displayed in the HTML table the textbox is given a
name like $0-name then $1-name dynamically until all the records in the
table have been displayed. Does anyone know how I can accomplish this?
Many Thanks.
- Matt Rudderham
---------------------------------------------------------------------
Before posting, please check:
http://www.mysql.com/manual.php (the manual)
http://lists.mysql.com/ (the list archive)
To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php