Whenver i try to update my columms in a selected row from PHP, it passed through without error, but it doesn’t update in the database.
$query = "UPDATE news SET title = '$title',
cover = '$cover', desc = '$newz', category = '$category'
WHERE id = $newz_select_id";
descis a reserved keyword in MySQL. Escape it with backtick ( ` ) instead.by the way, your code is very susceptible to sql injection. in order to avoid it, please study and use PHP PDO or PHP mySQLi Extensions.
See this Link: Best way to prevent SQL Injection