Error when Attempting to connect to external Db
Permalink 1 user found helpful
Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'ADODB_mysql::debug' was given in /httpdocs/concrete/libraries/database.php on line 73
I am attempting to connect to an external database to pull some extra information in the only difference is the DB_DATABASE2 as the user has privileges on both tables.
But I am unable to run $db2->Execute() or $db->query($q);
Can anyone point out what I am doing wrong?
Thanks
$db = Loader::db( DB_SERVER, DB_USERNAME, DB_PASSWORD, DB_DATABASE2, true); $db->Execute('select * from products WHERE products_code =60000001');
I am attempting to connect to an external database to pull some extra information in the only difference is the DB_DATABASE2 as the user has privileges on both tables.
But I am unable to run $db2->Execute() or $db->query($q);
Can anyone point out what I am doing wrong?
Thanks
I am not sure if this is the correct way to do it but I used
then was able to use