When I say missing quotes, this...
$query1="UPDATE jackbecky SET sequence = ".$newsequence." WHERE id = ".$id;
...should be this:
$query1="UPDATE jackbecky SET sequence='".$newsequence."' WHERE id = '".$id."'";
But regardless of what I think, the hint I gave you should be enough to help you solve the problem.
HTH,
-Snib
<><
http://www.snibworks.com
There are only two stupid questions: the one you don't ask, and the one you ask more than once :-)