"; $result = mysql_query($sql, $conn) or die ("update failed"); } header("location: subcat_list.php?pcat=$pcat"); ?>