Why is this creating a new row at the bottom with this data instead of modifying that specified row?
$sql = "
UPDATE products SET
productName = '$pname',
productDescription = '$pdes'
WHERE pID = '$pidmod'
";
WHERE pID='$pidmod' is the auto increment field.
An
UPDATEstatement does not add rows – unless there are triggers involved.