mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-15 16:38:54 +00:00
example correction
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@120246 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
3a905c6b90
commit
787a473b56
1 changed files with 2 additions and 2 deletions
|
@ -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"]);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue