Fixed example for dbx_query as it may lead to the misunderstanding that

a select query will return 1 if no results are found: it doesn't, it
returns a result-object with no rows.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@140820 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Marc Boeren 2003-09-22 07:41:02 +00:00
parent cb0052ee06
commit 73d602ced4

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.11 $ -->
<!-- $Revision: 1.12 $ -->
<!-- splitted from ./en/functions/dbx.xml, last change in rev 1.3 -->
<refentry id="function.dbx-query">
<refnamediv>
@ -35,9 +35,6 @@ if ( is_object($result) ) {
// first, print out field names and types
// then, draw a table filled with the returned field values
}
else if ( $result == 1 ) {
echo("Query executed successfully, but no result set returned");
}
else {
exit("Query failed");
}