example correction\n thanks to gonzales at mx1 dot linuxlouis dot net(user note)

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@196430 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Friedhelm Betz 2005-09-20 10:38:52 +00:00
parent 779ebcf90f
commit 7f688ebbc9

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.27 $ -->
<!-- $Revision: 1.28 $ -->
<!-- Purpose: database.vendors -->
<!-- Membership: bundled, external -->
@ -98,7 +98,7 @@
<![CDATA[
<?php
// Connecting, selecting database
$db = pg_connect("host=localhost dbname=publishing user=www password=foo");
$dbconn = pg_connect("host=localhost dbname=publishing user=www password=foo");
or die('Could not connect: ' . pg_last_error());
// Performing SQL query
@ -120,7 +120,7 @@ echo "</table>\n";
pg_free_result($result);
// Closing connection
pg_close($link);
pg_close($dbconn);
?>
]]>
</programlisting>