$category_id=1;
$sql = "DELETE * FROM `shop_category` WHERE `id` = $category_id";
mysql_query($sql);
can some one tell me the syntax to fix this. thnx
sql problems
Moderator: General Moderators
- twigletmac
- Her Royal Site Adminness
- Posts: 5371
- Joined: Tue Apr 23, 2002 2:21 am
- Location: Essex, UK
Have you checked the MySQL manual (the error is pretty simple to fix):
http://www.mysql.com/doc/en/DELETE.html
Mac
http://www.mysql.com/doc/en/DELETE.html
Mac