php - MySQL update 1 row of table, previous table is being updated -


  $ sql = "set up paper paper $ field = '$ data' where paper_id and user_id = ''. $ _SESSION ['edit2'] "'";   

I encountered a problem when I update the title (column in the paper table) for Paper_ID2; User_id 1 Paper_ID1; User_id 1 is also being updated

Can anyone give me an idea?

Try it:

  $ sql =" set up paper $ field = '$ data' Please, where the paper_id = ". $ _ Request ['peppid']. / / * Comes from your request * / and user_id = '. $ _SESSION [' edit2 ']"' ";    

Comments

Popular posts from this blog

asp.net - Procedure or function "Procedure name" expects a parameter "Param name" which was not supplied occurs rarely -

jsp - No mapping found for HTTP request with URI with annotation config Spring MVC and Jetty -

sql server ce - Is there some way to make sqlce3.5 and 4.0 co-exist in the C# project -