I'm using MySQLi driver.
I found two interesting things.
This code (using standard php way) is working well:
$app =& JFactory::getApplication();
$host = $app->getCfg('host');
$db = $app->getCfg('db');
$user = $app->getCfg('user');
$password = $app->getCfg('password');
// MYSQLI
$mysqli = new mysqli($host, $user, $password, $db);
$rs = $mysqli->query("CALL pageload('asdasd',
42,'127.0.0.1');");
while ($row = $rs->fetch_object()) {
echo print_r($row);
}
I also found that I have to pass output parameters for my procedure if
I want to get final record using Joomla Framework.
The problem is that my stored procedure returns one row with over 30
columns (I know, so many, but I really need em).
Why I can not get results from sproc by joomla's queries?
On 16 Mar, 18:19, Brad Gies <
rbg...@gmail.com> wrote:
> This works fine for me :
>
> $query = 'CALL project_category_insert_update(' . $data['id']
> . ', ' . $cat_id . ')';
> $db->setQuery($query);
> $db->query();
>
> BUT... I'm using the mysqli driver NOT the mysql driver. Which driver
> are you using?
>
> Sincerely,
>
> Brad Gies
> -----------------------------------------------------------------------
> MaxHOMEValue.com
> Kelowna, British Columbia, Canada
> email: bg...@maxhomevalue.comhttp://
maxhomevalue.com http://bgies.com