From 787a473b5607ae995b0d12c0d98419925ea059c6 Mon Sep 17 00:00:00 2001 From: Friedhelm Betz Date: Fri, 14 Mar 2003 14:01:28 +0000 Subject: [PATCH] example correction git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@120246 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/mysql/functions/mysql-list-processes.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/reference/mysql/functions/mysql-list-processes.xml b/reference/mysql/functions/mysql-list-processes.xml index 1c86034f3d..e67e6c8750 100644 --- a/reference/mysql/functions/mysql-list-processes.xml +++ b/reference/mysql/functions/mysql-list-processes.xml @@ -1,5 +1,5 @@ - + @@ -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"]); }