• 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!

TOPIC: Error SQL

Error SQL 1 year 3 months ago #43197

Good morning,

When I insert this query into an RsForm text field, I get an error at the REPLACE level. In phpMyAdmin no problem.
Can you tell me if already REPLACE is allowed in RsForm?
If so, where could the error come from?
thanks in advance
Sincerely,
Michael

//<code>
$items = array();
$db = JFactory::getDbo();
$db->setQuery("SELECT f857n_content.id, REPLACE(title, 'A paraître' , ' '), f857n_content.created_by_alias
FROM f857n_content
INNER JOIN f857n_fields_values ON f857n_content.id = f857n_fields_values.item_id
WHERE f857n_content.catid = 13
AND f857n_content.created_by_alias >= '95'
AND f857n_fields_values.value = 'oui'
AND f857n_content.state = 1
ORDER BY f857n_content.created_by_alias DESC");
$results = $db->loadObjectList();

foreach ($results as $result) {
$value = $result->created_by_alias;
$label = $result->title;
$items[] = '8|'.$label.'<br />';
}
$items = implode("\n", $items);
return $items;
//</code>
The administrator has disabled public write access.
  • 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!