Error using MSSQL

Discussion forum for Extension Writers regarding Extension Development.
Post Reply
Registered User
Posts: 19
Joined: Tue Aug 22, 2017 2:35 pm

Error using MSSQL

Post by radders » Thu Aug 31, 2017 7:08 am

I'm creating an Extension which will connect to an MS SQL database (the main code uses MySQL).

I have added the following lines of code:

Code: Select all

class mssql extends \phpbb\auth\provider\base
public function __construct(...)
		$this->db= new \phpbb\db\driver\mssqlnative;
		$this->db->sql_connect("", "phpbb", "phpbb", "phpbb", 1433);
but I'm getting an error in the

Code: Select all

code because function

Code: Select all

can't be found.

What step(s) have I missed? I have added the DLL and enabled it (sql server shows in phpinfo).


Post Reply

Return to “Extension Writers Discussion”

Who is online

Users browsing this forum: Tbot [Bot] and 9 guests