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