php - mysql table createing new row instead of updating -


A row exists where 'bookName' equals 'bookName' and instead of just updating, it creates a new line What's wrong in my order? Thanks! Include

  $ query = mysql_query ("Custom IBook, YouTube, Entry Page, Case Studies, URL, EntryPoint, Date, Bookname)" ('$ user id', '$ email address' '$ Work', '$ case study', '$ url', '$ entryPoint', '$ date', '$ bookName') Key update of duplicate book name = 'book name');    INSERT  query is correct but I think you have the column  Failed to define the constraint  UNIQUE  on bookName . Execute not statements:  
  Connect Add optional table Kstmbukinfest tb_uq UNIQUE (bookName);    

Comments

Popular posts from this blog

excel vba - How to delete Solver(SOLVER.XLAM) code -

github - Teamcity & Git - PR merge builds - anyway to get HEAD commit hash? -

ios - Replace text in UITextView run slowly -