CGTroll Posted August 18, 2013 Share Posted August 18, 2013 I try to use this code to update a table, what am I doing wrong, cuz it ain't working? (guessing the problem lays on the last two rows..) $inputquery = "UPDATE content_about "; $inputquery .= "(about_description, about_content01_tittle, about_content01, about_content02_tittle, about_content02, about_content03_tittle, about_content03, about_content04_tittle, about_content04, about_content05_tittle, about_content05, about_content06_tittle, about_content06, about_content07_tittle, about_content07, about_content08_tittle, about_content08, about_content09_tittle, about_content09, about_content10_tittle, about_content10, about_content11_tittle, about_content11, about_content12_tittle, about_content12, date) "; $inputquery .= " VALUES "; $inputquery .= "('$about_description', '$about_content01_tittle', '$about_content01', '$about_content02_tittle', '$about_content02', '$about_content03_tittle', '$about_content03', '$about_content04_tittle', '$about_content04', '$about_content05_tittle', '$about_content05', '$about_content06_tittle', '$about_content06', '$about_content07_tittle', '$about_content07', '$about_content08_tittle', '$about_content08', '$about_content09_tittle', '$about_content09', '$about_content10_tittle', '$about_content10', '$about_content11_tittle', '$about_content11', '$about_content12_tittle', '$about_content12', '$date') "; $inputquery .= " WHERE "; $inputquery .= "(about_id = '$content_id')"; Thanks! Link to comment https://forums.phpfreaks.com/topic/281290-whats-wrong-with-my-code/ Share on other sites More sharing options...
mac_gyver Posted August 18, 2013 Share Posted August 18, 2013 http://dev.mysql.com/doc/refman/5.6/en/update.html Link to comment https://forums.phpfreaks.com/topic/281290-whats-wrong-with-my-code/#findComment-1445578 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.