Hi All
I have a DB where user can put 20 items in the storage bin item they want to keep there to buy at later dates they keep the first item as the next purchase item these items are numbered 1 to 20.
I want to be able to let the user del any item or reorder the items accordingly
my problem is that i need re order the $list_numbers back to an correct order
i.e.
my bin is full I want to remove item 4
hit update my bin should read
item 1
item 2
item 3...
item 19
of course counting in numric order
I tried this to no avail
// this is coming from a list() to count the
// checkbox that are checked
$checked_fields = count($item_id);
$sql_re = "UPDATE storage_bin SET
$list_numbers = $list_numbers - $checked_fields
WHERE user_id = '$user_id'";
$sql_re_result = mysql_query($sql_re);
TIA for any help