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