SyntaxFix
Write A Post
Hire A Developer
Questions
You are single quoting your SQL statement which is making the variables text instead of variables.
$sql = "SELECT * FROM $usertable WHERE PartNumber = $partid";