cvs: phpdoc /en/reference/ingres-ii examples.xml

From: Date: Mon, 29 Dec 2008 12:45:13 +0000
Subject: cvs: phpdoc /en/reference/ingres-ii examples.xml
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-2866@lists.php.net to get a copy of this message
grantc Mon Dec 29 12:45:13 2008 UTC Modified files: /phpdoc/en/reference/ingres-ii examples.xml Log: Update for v2.0 driver syntax changes http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/ingres-ii/examples.xml?r1=1.2&r2=1.3&diff_format=u Index: phpdoc/en/reference/ingres-ii/examples.xml diff -u phpdoc/en/reference/ingres-ii/examples.xml:1.2 phpdoc/en/reference/ingres-ii/examples.xml:1.3 --- phpdoc/en/reference/ingres-ii/examples.xml:1.2 Sun Dec 23 18:42:15 2007 +++ phpdoc/en/reference/ingres-ii/examples.xml Mon Dec 29 12:45:13 2008 @@ -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 @@ // 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";

« previous php.doc.cvs (#2866) next »