Update for v2.0 driver syntax changes

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@272215 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Grant Croker 2008-12-29 12:45:13 +00:00
parent e65c8aff4d
commit 0134df9c97

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.2 $ -->
<!-- $Revision: 1.3 $ -->
<chapter xml:id="ingres.examples" xmlns="http://docbook.org/ns/docbook">
&reftitle.examples;
@ -19,14 +19,14 @@ echo 'Connected successfully';
// Select from a table that exists in all Ingres databases
$query = 'SELECT * FROM iirelation';
$returncode = ingres_query($query,$link) or die('Query failed: ' .
$returncode = ingres_query($link,$query) or die('Query failed: ' .
ingres_error($link));
// Print results in HTML
// relid - table name
// relowner - table owner
echo "<table>\n";
while ($iirelation = ingres_fetch_object(INGRES_BOTH, $link)) {
while ($iirelation = ingres_fetch_object($link)) {
echo "\t<tr>\n";
echo "\t\t<td>" . $iirelation->relid . "</td>\n";
echo "\t\t<td>" . $iirelation->relowner . "</td>\n";