Re: Selecting rows for editing

2001-04-17 Thread Gerald Clark
That is what the autoincrement ID field is usually used for. UPDATE mytable SET thisfield=newvalue where id=THISID; Martin Skjöldebrand wrote: > > Hi, > > Now I'm completely stuck. > I am codeing a (basic at this point) stock inventory in PHP/MySQL. > I have all items in a table displayed in

Selecting rows for editing

2001-04-16 Thread Martin Skjöldebrand
Hi, Now I'm completely stuck. I am codeing a (basic at this point) stock inventory in PHP/MySQL. I have all items in a table displayed in a table in PHP. Like this: if ($isstock >0) { //get value from a check on mysql_num_rows if ($action != "Edit") { for ($i = 0; $i <= $isstock -1; $i++)