svn: /phpdoc/ru/trunk/reference/array/functions/ list.xml

From: Date: Wed, 10 Jul 2013 07:56:52 +0000
Subject: svn: /phpdoc/ru/trunk/reference/array/functions/ list.xml
Groups: php.doc.ru 
Request: Send a blank email to doc-ru+get-4268@lists.php.net to get a copy of this message
shein Wed, 10 Jul 2013 07:56:52 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=330844 Log: Update translation. Changed paths: U phpdoc/ru/trunk/reference/array/functions/list.xml Modified: phpdoc/ru/trunk/reference/array/functions/list.xml =================================================================== --- phpdoc/ru/trunk/reference/array/functions/list.xml 2013-07-10 07:55:15 UTC (rev 330843) +++ phpdoc/ru/trunk/reference/array/functions/list.xml 2013-07-10 07:56:52 UTC (rev 330844) @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- EN-Revision: 320698 Maintainer: shein Status: ready --> +<!-- EN-Revision: 329580 Maintainer: shein Status: ready --> <!-- Reviewed: yes --> <!-- $Revision$ --> <refentry xml:id="function.list" xmlns="http://docbook.org/ns/docbook"> @@ -84,9 +84,8 @@ </tr> <?php - -$result = mysql_query("SELECT id, name, salary FROM employees", $conn); -while (list($id, $name, $salary) = mysql_fetch_row($result)) { +$result = $pdo->query("SELECT id, name, salary FROM employees"); +while (list($id, $name, $salary) = $result->fetch(PDO::FETCH_NUM)) { echo " <tr>\n" . " <td><a href=\"info.php?id=$id\">$name</a></td>\n" . " <td>$salary</td>\n" .

« previous php.doc.ru (#4268) next »