Try querying using what you have
PHP Code:
$query1 = "SELECT part_id_num, part_manufac_code, part_number FROM tblparts WHERE (part_manufac_code = '$frmfindpart')";
$result1 = mysql_query($query1) or die(mysql_error());
except add limit and ASC or DESC
PHP Code:
$query1 = "SELECT part_id_num, part_manufac_code, part_number FROM tblparts WHERE (part_manufac_code = '$frmfindpart') LIMIT 1 DESC ";
This way you always get the last row using the part_manufac_code, as long as this is what you want. Other than that, you should use the part_number or ID to get specific queries rather then going the long and hard way about this.
Bookmarks