SyntaxFix
Write A Post
Hire A Developer
Questions
What happens in your code if $usertable is not a valid table or doesn't include a column PartNumber or part is not a number.
$usertable
You must escape $partid and also read the document for mysql_fetch_assoc() because it can return a boolean