Code:

require "parts_of_site/connect_sql.php"; $priceqw = mysql_query("UPDATE Hookah_main SET PriceSort='550' WHERE ID_Hookah=30"); if($priceqw){echo "ok";} 

I run in the browser - the update does not go. There is a connection to the base. If you remake the request for output - the data is displayed. If you score directly into the cheekbone - is performed. What is the problem - I do not understand (

  • one
    In this formulation, neither the question nor the answer have any value for the community. If a person has this problem, neither your question nor the answer will be found .. Or reformulate or delete. - E_p
  • I do not mind, you can delete. The question is really stupid, but isn't that what its value is? This is the first tip in the causes of failure - "check that the plug is in the outlet." If I came across such an answer, then the question would not have been written. Immediately would understand where flattery. About the wording - the question indicates, it seems, all the conditions under which the task was performed. The code itself is given. In the end, a solution was also found. I can not imagine what else you can add. - Zhenya Vedenin

2 answers 2

Adding did not go due to limited user rights.

    Try to look at the mysql error, I think everything will be clear right away.

     $priceqw = mysql_query("UPDATE Hookah_main SET PriceSort='550' WHERE ID_Hookah=30") or die(mysql_error()); 
    • Already found the answer, thanks. But I think your way would help - Zhenya Vedenin