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!! 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. Link to comment https://forums.phpfreaks.com/topic/221137-help-with-ez-auto/#findComment-1145004 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.