fix typo in db_connect()
This commit is contained in:
parent
6b3bce8abb
commit
6effd45248
3
db.php
3
db.php
|
@ -8,8 +8,7 @@ function db_connect($host, $user, $pass, $db) {
|
||||||
$string = "dbname=$db user=$user password=$pass";
|
$string = "dbname=$db user=$user password=$pass";
|
||||||
|
|
||||||
if ($host) {
|
if ($host) {
|
||||||
|
$string .= "host=$host";
|
||||||
$stripng .= "host=$host";
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return pg_connect($string);
|
return pg_connect($string);
|
||||||
|
|
Loading…
Reference in New Issue