# Deleting rows from database

**URL:** <https://forum.kirupa.com/t/deleting-rows-from-database/318656>\
**Category:** programming\
**Created:** [January 26, 2011, 2:44pm UTC](https://forum.kirupa.com/t/deleting-rows-from-database/318656 "2011-01-26T14:44:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![saucey](https://avatars.discourse-cdn.com/v4/letter/s/ecae2f/32.png) [@saucey](https://forum.kirupa.com/u/saucey)\
**Post date:** [January 26, 2011, 2:44pm UTC](https://forum.kirupa.com/t/deleting-rows-from-database/318656/1 "2011-01-26T14:44:25Z")

</div>

hi all i am getting a problem with this line of code

mysql\_query(“DELETE FROM cms WHERE ‘ID’ =” . $\_GET[‘id’] . “”)  
or die(mysql\_error());

and this is the error message:

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘{ID}’ at line 1

were is my syntax going wrong.
