which is creating this table:
Table createb by PHP with MySQL data
Every row have two inputs. My DB table has AUTO_INCREMENT 'ID' field.
How can I update my DB Table and make sure that rows will be updated accordingly to the ID's (auto incremented field)?
I'm must admit that SQL with PHP is very new to me and I don't know is this correct way of doing it?
$news_SQLupdate = "UPDATE news SET "; // table name is 'news'
$news_SQLupdate .= "LIVE= '".$LIVE."', ";
$news_SQLupdate .= "CONTENT= '".$CONTENT."', ";
$news_SQLupdate .= "WHERE ID = '".$ID."' ";