cvs: phpdoc /en/reference/mysqli/mysqli field-count.xml
| From: | Daniel Convissor | Date: | Thu, 10 Jul 2008 20:31:55 +0000 |
| Subject: | cvs: phpdoc /en/reference/mysqli/mysqli field-count.xml | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-1860@lists.php.net to get a copy of this message | ||
danielc Thu Jul 10 20:31:55 2008 UTC
Modified files:
/phpdoc/en/reference/mysqli/mysqli field-count.xml
Log:
* Change example to use specific query rather than giving users the notion that running queries
from user input is okay.
http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/mysqli/mysqli/field-count.xml?r1=1.2&r2=1.3&diff_format=u
Index: phpdoc/en/reference/mysqli/mysqli/field-count.xml
diff -u phpdoc/en/reference/mysqli/mysqli/field-count.xml:1.2
phpdoc/en/reference/mysqli/mysqli/field-count.xml:1.3
--- phpdoc/en/reference/mysqli/mysqli/field-count.xml:1.2 Wed Jan 2 15:48:24 2008
+++ phpdoc/en/reference/mysqli/mysqli/field-count.xml Thu Jul 10 20:31:55 2008
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.2 $ -->
+<!-- $Revision: 1.3 $ -->
<refentry xml:id="mysqli.field-count" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
<refname>mysqli->field_count</refname>
@@ -60,7 +60,7 @@
$mysqli->query( "INSERT INTO friends VALUES (1,'Hartmut'), (2,
'Ulf')");
-$mysqli->real_query($HTTP_POST_VARS['query']);
+$mysqli->real_query("SELECT * FROM friends");
if ($mysqli->field_count) {
/* this was a select/show or describe query */
@@ -91,7 +91,7 @@
mysqli_query($link, "INSERT INTO friends VALUES (1,'Hartmut'), (2,
'Ulf')");
-mysqli_real_query($link, $HTTP_POST_VARS['query']);
+mysqli_real_query($link, "SELECT * FROM friends");
if (mysqli_field_count($link)) {
/* this was a select/show or describe query */