On 28-Mar-2003 Daniel Harik wrote:
> Hello guys,
> 
> I'm trying to make grid form that will allow to edit 60 rows at the same 
> time, it's not hard to make a loop that would go from 0 to 59, but  
> my problem is that i don't know what rows to update as i see no way to
> find 
> row's id after form is submitted.
> 
> Thank You Very much.
> 

if ( (isset($submit)) && ($submit =='Update') ) {
  while (list($id, $val) = each($row)) {
    // do something with $id and $val
  }      
}


yourforloop {
   // fetch $id, $val
   echo "<INPUT TYPE=TEXT NAME=\"row[$id]\" VALUE=\"$val\">";
}

Regards,
-- 
Don Read                                       [EMAIL PROTECTED]
-- It's always darkest before the dawn. So if you are going to 
   steal the neighbor's newspaper, that's the time to do it.
                            (53kr33t w0rdz: sql table query)


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to