cvs: phpdoc /en/reference/mysqli/functions mysqli-set-charset.xml
| From: | Jakub Vrana | Date: | Tue, 06 Sep 2005 07:27:59 +0000 |
| Subject: | cvs: phpdoc /en/reference/mysqli/functions mysqli-set-charset.xml | ||
| Groups: | php.doc | ||
| Request: | Send a blank email to phpdoc+get-969369906@lists.php.net to get a copy of this message | ||
vrana Tue Sep 6 03:27:59 2005 EDT
Modified files:
/phpdoc/en/reference/mysqli/functions mysqli-set-charset.xml
Log:
Swapped if (bug #34379), typo
http://cvs.php.net/diff.php/phpdoc/en/reference/mysqli/functions/mysqli-set-charset.xml?r1=1.1&r2=1.2&ty=u
Index: phpdoc/en/reference/mysqli/functions/mysqli-set-charset.xml
diff -u phpdoc/en/reference/mysqli/functions/mysqli-set-charset.xml:1.1
phpdoc/en/reference/mysqli/functions/mysqli-set-charset.xml:1.2
--- phpdoc/en/reference/mysqli/functions/mysqli-set-charset.xml:1.1 Sat May 14 14:40:37 2005
+++ phpdoc/en/reference/mysqli/functions/mysqli-set-charset.xml Tue Sep 6 03:27:55 2005
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.1 $ -->
+<!-- $Revision: 1.2 $ -->
<refentry id="function.mysqli-set-charset">
<refnamediv>
<refname>mysqli_set_charset</refname>
@@ -55,8 +55,8 @@
}
/* change character set to utf8 */
-if ($mysqli->set_charset("utf8")) {
- printf("Error loading character set utf8: %s\n", $mysql->error);
+if (!$mysqli->set_charset("utf8")) {
+ printf("Error loading character set utf8: %s\n", $mysqli->error);
} else {
printf("Current character set: %s\n", $mysqli->character_set_name());
}
@@ -80,7 +80,7 @@
}
/* change character set to utf8 */
-if (mysqli_set_charset($link, "utf8")) {
+if (!mysqli_set_charset($link, "utf8")) {
printf("Error loading character set utf8: %s\n", mysqli_error($link));
} else {
printf("Current character set: %s\n", mysqli_character_set_name($link));