Ummm...
Yes, if this is your query? :
$query = "update products set prod_name = '".$_POST['name1']."', price1 = ".$_POST['price1'].", where prod_no = ".$_POST['prodno']."" or die(mysql_error());
You can't have the mysql error specified behind the construction of the query - you must compile, then do the query with the error-safing:
$query = "update products set prod_name = '".$_POST['name1']."', price1 = ".$_POST['price1'].", where prod_no = ".$_POST['prodno'].""
$do_the_query = mysql_query($query) or die(mysql_error());
knutm