I am using a HTML forum with PHP to update a MySQL database. I have tried this PHP code:
[php]$query = “UPDATE products
set category
= '”.$_POST[‘category’]."’ where id
= ‘".$_POST[‘id’]."’";[/php]
PHP parses the code, but it has no effect on my database which leads me to suspect a MySQL syntax problem, OR, I’ve implimented PHP wrong inside my MySQL query.
Can anyone see a problem with my code that I’ve missed?