cvs: phpdoc /en/reference/mysql/functions mysql-list-processes.xml
| From: | Friedhelm Betz | Date: | Fri, 14 Mar 2003 14:01:30 +0000 |
| Subject: | cvs: phpdoc /en/reference/mysql/functions mysql-list-processes.xml | ||
| Groups: | php.doc | ||
| Request: | Send a blank email to phpdoc+get-969352220@lists.php.net to get a copy of this message | ||
betz Fri Mar 14 09:01:30 2003 EDT
Modified files:
/phpdoc/en/reference/mysql/functions mysql-list-processes.xml
Log:
example correction
Index: phpdoc/en/reference/mysql/functions/mysql-list-processes.xml
diff -u phpdoc/en/reference/mysql/functions/mysql-list-processes.xml:1.2
phpdoc/en/reference/mysql/functions/mysql-list-processes.xml:1.3
--- phpdoc/en/reference/mysql/functions/mysql-list-processes.xml:1.2 Wed Apr 17 02:41:12 2002
+++ phpdoc/en/reference/mysql/functions/mysql-list-processes.xml Fri Mar 14 09:01:28 2003
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.2 $ -->
+<!-- $Revision: 1.3 $ -->
<!-- splitted from ./en/functions/mysql.xml, last change in rev 1.96 -->
<refentry id="function.mysql-list-processes">
<refnamediv>
@@ -27,7 +27,7 @@
$link = mysql_connect('localhost', 'mysql_user', 'mysql_password');
$result = mysql_list_processes($link);
-while ($row = mysql_fetch_row($result)){
+while ($row = mysql_fetch_assoc($result)){
printf("%s %s %s %s %s\n", $row["Id"], $row["Host"],
$row["db"],
$row["Command"], $row["Time"]);
}