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

Pass DB Connection parameters to a Kettle a.k.a PDI table Input step dynamically from Excel -

multithreading - PhantomJS-Node in a for Loop -

c++ - MATLAB .m file to .mex file using Matlab Compiler -