Answer the question
In order to leave comments, you need to log in
The Joomla JFactory::getDbo() class. An incomprehensible error in the SQL query when reading the table, but where?
It seems to be a simple request and very simple
$db = JFactory::getDbo();
$db->setQuery( "SELECT * FROM tur_userxtd_profiles WHERE user_id='622' AND key ='BASIC_AVATAR'");
1064 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 'key ='BASIC_AVATAR'' at line 1 SQL=SELECT * FROM #__userxtd_profiles
WHERE user_id='622' AND key ='BASIC_AVATAR'
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question