This loop in your form is going to cause problems:
foreach ($items as $item)
{
$isbn = $item["isbn"];
?>
<tr>
<td><input disabled type=text name=author value="<? echo $item["author"] ?>"></td>
<td><input disabled type=text name=title value="<? echo $item["title"]?>"></td>
<td><input type=text name=price value="<? echo $item["price"]?>"></td>
<td><input disabled type=text name=description value="<? echo $item["description"]?>"></td>
<td><input type=text name=quantity value=""></td>
<td><input type=checkbox name=sv_flag ></td>
</tr>
<?
}
You're going to end up with multiple fields in your form, each with the same name. If you're going to do it like this you'll need to make them arrays. Something like this, for example:
<td><input type=text name=price[] value="<? echo $item["price"]?>"></td>
Then in your form handler price will be an array. I haven't really looked at all the rest of your code, but youi might need to rethink your logic.