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"]);
 }



-- 
PHP Documentation Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to