$result = "SELECT * FROM inventory a
LEFT JOIN pd_color b
ON a.color_id = b.color_id
WHERE pd_nambill = '$name'";
$objQuery = mysql_query($result);
$objResult = mysql_fetch_array($objQuery);
?>
$result = "SELECT * FROM inventory a
LEFT JOIN pd_color b
ON a.color_id = b.color_id
WHERE pd_nambill = '".mysql_real_escape_string($name)."'";
$objQuery = mysql_query($result);
$objResult = mysql_fetch_array($objQuery);
?>