revfive Posted December 9, 2010 Share Posted December 9, 2010 Ok, I keep getting 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 'range as value, range as text FROM jos_ezautos_price ORDER by ordering' at line 1 SQL=SELECT range as value, range as text FROM jos_ezautos_price ORDER by ordering on the search page. I have found the code that it refers to, but not sure how to fix it $sql = "SELECT range as value, range as text FROM #__ezautos_price ORDER by ordering"; any help would be awesome!! Quote Link to comment https://forums.phpfreaks.com/topic/221137-help-with-ez-auto/ Share on other sites More sharing options...
PFMaBiSmAd Posted December 9, 2010 Share Posted December 9, 2010 range is a reserved mysql keyword. You either need to rename your column to something else or enclose it in back-ticks `` every time you use it in a query. Quote Link to comment https://forums.phpfreaks.com/topic/221137-help-with-ez-auto/#findComment-1145004 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.