mboeren Mon Sep 22 03:41:02 2003 EDT
Modified files:
/phpdoc/en/reference/dbx/functions dbx-query.xml
Log:
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.
Index: phpdoc/en/reference/dbx/functions/dbx-query.xml
diff -u phpdoc/en/reference/dbx/functions/dbx-query.xml:1.11
phpdoc/en/reference/dbx/functions/dbx-query.xml:1.12
--- phpdoc/en/reference/dbx/functions/dbx-query.xml:1.11 Fri Sep 5 05:19:15
2003
+++ phpdoc/en/reference/dbx/functions/dbx-query.xml Mon Sep 22 03:41:02 2003
@@ -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>
@@ -34,9 +34,6 @@
// ... do some stuff here, see detailed examples below ...
// 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");