Hey there sorry for that.
Here's the code:
Code:
$uddeim = new uddeIMAPI();
$user =& JFactory::getUser();
$userId = $user->id;
switch($groupid){
case '1':
$recipientId = '57';
break;
case '2':
$recipientId = '58';
break;
case '3':
$recipientId = '56';
break;
case '4':
$recipientId = '50';
break;
default:
die('No group defined');
}
$uddeim->sendNewMessage($userId,$recipientId,$body);
The error is thrown by the last line, which reports nothing but the following:
"SQL error when attempting to save a message Las funciones de la base de datos, no reportan ningún error"
The first part (English) is thrown by includes.db.php, and the last part is a Joomla message which i have localized to Spanish, but its saying that the functions on the database are not reporting any error.
Let me know if you think any other piece of info would be useful