mirror of
https://github.com/loewexy/pdnsmanager.git
synced 2025-01-27 16:04:10 +01:00
Included port in database parameters
This commit is contained in:
parent
1f59e8e87c
commit
bc115c3c51
1 changed files with 1 additions and 5 deletions
|
@ -16,12 +16,8 @@
|
|||
* limitations under the License.
|
||||
*/
|
||||
|
||||
$db = new mysqli($config['db_host'], $config['db_user'], $config['db_password']);
|
||||
$db = new mysqli($config['db_host'], $config['db_user'], $config['db_password'], $config['db_name'], $config['db_port']);
|
||||
|
||||
if ($db->connect_error) {
|
||||
die("Connection to database failed");
|
||||
}
|
||||
|
||||
if(!$db->select_db($config['db_name'])) {
|
||||
die("Database not available");
|
||||
}
|
Loading…
Add table
Reference in a new issue