Are those line numbers actually in your code? This: 8 : SELECT * 9 : FROM references 10 : WHERE record_id = #URL.record_id# 11 : </cfquery> 12 :
Should be: SELECT * FROM references WHERE record_id = #URL.record_id# And you probably should be using CFQUERYPARAM to pass the record_id On Mon, Jun 20, 2011 at 12:42 AM, John Barrett <[email protected]> wrote: > > Hi William, > thanks so much for the reply, the database user has rights delete > the error I get is > Error Executing Database Query. > > > 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 'references WHERE > record_id = 7' at line 2 > > > > The error occurred > in/Users/johnbarrett/Sites/ironessentials/admin/Refernece/deleteform.cfm: > line 10 > 8 : SELECT * 9 : FROM references 10 : WHERE record_id = #URL.record_id# 11 : > </cfquery> 12 : > > thanks so much, > John ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-newbie/message.cfm/messageid:5305 Subscription: http://www.houseoffusion.com/groups/cf-newbie/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-newbie/unsubscribe.cfm
