Fatal error: Call to undefined function pg_connect()
Publicado por Francisco (1 intervención) el 24/01/2017 19:49:49
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<html>
<head><title>Prueba</title></head>
<body>
<?php
$host="localhost";
$port="5432";
$user="postgres";
$pass="postgres";
$dbname="exonerados";
$connect = pg_connect("host=$host, port=$port, user=$user,pass=$pass, dbname=$dbname");
if(!$connect)
echo "<p><i>No me conecte</i></p>";
else
echo "<p><i>Me conecte</i></p>";
pg_close($connect);
?>
</body>
</html>
Valora esta pregunta


0