cvs: phpdoc-zh /reference/mysql/functions mysql-affected-rows.xml
| From: | Gregory Song | Date: | Sat, 28 Dec 2002 09:28:43 +0000 |
| Subject: | cvs: phpdoc-zh /reference/mysql/functions mysql-affected-rows.xml | ||
| Groups: | php.doc.zh | ||
| Request: | Send a blank email to doc-zh+get-948@lists.php.net to get a copy of this message | ||
gregory Sat Dec 28 04:28:43 2002 EDT
Modified files:
/phpdoc-zh/reference/mysql/functions mysql-affected-rows.xml
Log:
Up to date with the En version.
Index: phpdoc-zh/reference/mysql/functions/mysql-affected-rows.xml
diff -u phpdoc-zh/reference/mysql/functions/mysql-affected-rows.xml:1.1
phpdoc-zh/reference/mysql/functions/mysql-affected-rows.xml:1.2
--- phpdoc-zh/reference/mysql/functions/mysql-affected-rows.xml:1.1 Tue Sep 10 23:54:09 2002
+++ phpdoc-zh/reference/mysql/functions/mysql-affected-rows.xml Sat Dec 28 04:28:42 2002
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="gb2312"?>
-<!-- $Revision: 1.1 $ -->
-<!-- $Author: yorgo $ -->
-<!-- EN-Revision: 1.5 Maintainer: yorgo Status: ready -->
+<!-- $Revision: 1.2 $ -->
+<!-- $Author: gregory $ -->
+<!-- EN-Revision: 1.6 Maintainer: yorgo Status: ready -->
<!-- splitted from ./en/functions/mysql.xml, last change in rev 1.2 -->
<refentry id="function.mysql-affected-rows">
<refnamediv>
@@ -52,7 +52,7 @@
<?php
/* Á¬½ÓÊý¾Ý¿â */
mysql_pconnect("localhost", "mysql_user", "mysql_password") or
- die ("Could not connect");
+ die ("Could not connect" . mysql_error());
/* Õâ»á·µ»ØÓÐЧµÄ±»É¾³ý¼Ç¼Êý¡£ */
mysql_query("DELETE FROM mytable WHERE id < 10");
@@ -81,7 +81,7 @@
<?php
/* Á¬½ÓÊý¾Ý¿â */
mysql_pconnect("localhost", "mysql_user", "mysql_password") or
- die ("Could not connect");
+ die ("Could not connect" . mysql_error());
/* Update ¼Ç¼ */
mysql_query("UPDATE mytable SET used=1 WHERE id < 10");