mysql_connect_with_db

function mysql_connect_with_db(
  string $server = null,
  string $username = null,
  string $password = null,
  string $database = null,
  bool $new_link = false,
  int $client_flags = 0,
  int $connect_timeout_ms = -1,
  int $query_timeout_ms = -1,
  array<string, string> $conn_attrs = [],
): mixed;

Parameters

  • string $server = null
  • string $username = null
  • string $password = null
  • string $database = null
  • bool $new_link = false
  • int $client_flags = 0
  • int $connect_timeout_ms = -1
  • int $query_timeout_ms = -1
  • array<string, string> $conn_attrs = []