mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
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:
parent
779ebcf90f
commit
7f688ebbc9
1 changed files with 3 additions and 3 deletions
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue