When I set this filter on WHERE SQL
WHERE fulltext LIKE '%joomla%'
I get this error
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 'fulltext LIKE '%joomla%'' at line 1 SQL=SELECT count(*) FROM jos_content WHERE fulltext LIKE '%joomla%'
CONTENUTI DI JOOMLA
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 'fulltext LIKE '%joomla%'' at line 1 SQL=SELECT count(*) FROM jos_content WHERE fulltext LIKE '%joomla%'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 'fulltext LIKE '%joomla%'' at line 1 SQL=SELECT count(*) FROM jos_content WHERE fulltext LIKE '%joomla%'
If you set the filter on field title or introtext everything is OK.
P.S.
CONTENUTI DI JOOMLA
It is in to HeaderAs I rougly recall, 'FULLTEXT' is a reserved keyword in MySQL, so you'll have to properly quote it:
WHERE `fulltext` LIKE '%joomla%'
Or (using the database object to quote the name and pattern on the fly):
<?php
$db = JFactory::getDBO();
echo sprintf(
'WHERE %s LIKE %s',
$db->nameQuote('fulltext'),
$db->quote('%joomla%')
);
?>
/Fredrik