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

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

java - Ajax call to jsp and jsp redirecting to further jsp -

c# - Roxy file manager in MVC doesn't accept session path -