cvs: phpdoc /en/reference/mysqli/functions mysqli-affected-rows.xml mysqli-autocommit.xml mysqli-execute.xml mysqli-fetch-field.xml
mysqli-fetch-fields.xml mysqli-fetch-object.xml mysqli-param-count.xml

From: Date: Sat, 17 May 2003 14:31:05 +0000
Subject: cvs: phpdoc /en/reference/mysqli/functions mysqli-affected-rows.xml mysqli-autocommit.xml mysqli-execute.xml mysqli-fetch-field.xml
mysqli-fetch-fields.xml mysqli-fetch-object.xml mysqli-param-count.xml
Groups: php.doc 
Request: Send a blank email to phpdoc+get-969353569@lists.php.net to get a copy of this message
didou Sat May 17 10:31:05 2003 EDT Modified files: /phpdoc/en/reference/mysqli/functions mysqli-affected-rows.xml mysqli-autocommit.xml mysqli-execute.xml mysqli-fetch-field.xml mysqli-fetch-fields.xml mysqli-fetch-object.xml mysqli-param-count.xml Log: typos and examples correction Index: phpdoc/en/reference/mysqli/functions/mysqli-affected-rows.xml diff -u phpdoc/en/reference/mysqli/functions/mysqli-affected-rows.xml:1.2 phpdoc/en/reference/mysqli/functions/mysqli-affected-rows.xml:1.3 --- phpdoc/en/reference/mysqli/functions/mysqli-affected-rows.xml:1.2 Tue May 13 19:12:15 2003 +++ phpdoc/en/reference/mysqli/functions/mysqli-affected-rows.xml Sat May 17 10:31:04 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.2 $ --> +<!-- $Revision: 1.3 $ --> <refentry id="function.mysqli-affected-rows"> <refnamediv> <refname>mysqli_affected_rows</refname> @@ -36,7 +36,8 @@ /* connect to database */ mysqli_connect("localhost", "mysql_user", "mysql_password") or die("Could not connect: " . mysqli_error()); - + mysqli_select_db("mydb"); + /* this should return the correct numbers of deleted records */ mysqli_query("DELETE FROM mytable WHERE id < 10"); printf ("Records deleted: %d\n", mysqli_affected_rows()); @@ -65,7 +66,8 @@ /* connect to database */ mysqli_connect("localhost", "mysql_user", "mysql_password") or die("Could not connect: " . mysql_error()); - + mysqli_select_db("mydb"); + /* Update records */ mysqli_query("UPDATE mytable SET used=1 WHERE id < 10"); printf ("Updated records: %d\n", mysqli_affected_rows()); Index: phpdoc/en/reference/mysqli/functions/mysqli-autocommit.xml diff -u phpdoc/en/reference/mysqli/functions/mysqli-autocommit.xml:1.2 phpdoc/en/reference/mysqli/functions/mysqli-autocommit.xml:1.3 --- phpdoc/en/reference/mysqli/functions/mysqli-autocommit.xml:1.2 Tue May 13 19:12:15 2003 +++ phpdoc/en/reference/mysqli/functions/mysqli-autocommit.xml Sat May 17 10:31:04 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.2 $ --> +<!-- $Revision: 1.3 $ --> <refentry id="function.mysqli-autocommit"> <refnamediv> <refname>mysqli_autocommit</refname> @@ -13,7 +13,7 @@ <methodparam><type>bool</type><parameter>mode</parameter></methodparam> </methodsynopsis> <para> - <function>mysqli_autocommmit</function> is used to turn on or off auto-commit mode + <function>mysqli_autocommit</function> is used to turn on or off auto-commit mode on queries for the database connection represented by the <parameter>link</parameter> resource. The <function>mysqli_autocommit</function> will return a boolean indicating success or failure of the call. Index: phpdoc/en/reference/mysqli/functions/mysqli-execute.xml diff -u phpdoc/en/reference/mysqli/functions/mysqli-execute.xml:1.2 phpdoc/en/reference/mysqli/functions/mysqli-execute.xml:1.3 --- phpdoc/en/reference/mysqli/functions/mysqli-execute.xml:1.2 Tue May 13 19:12:16 2003 +++ phpdoc/en/reference/mysqli/functions/mysqli-execute.xml Sat May 17 10:31:04 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.2 $ --> +<!-- $Revision: 1.3 $ --> <refentry id="function.mysqli-execute"> <refnamediv> <refname>mysqli_execute</refname> @@ -37,11 +37,13 @@ /* Open a connection */ $link = mysqli_connect("localhost", "user", "pass"); + mysqli_select_db("mydb"); + /* Turn on autocommit */ mysqli_autocommit($link, true); /* Prepare an insert statement */ - $query = "INSERT INTO foo VALUES(?, ?)"; + $query = "INSERT INTO mytable VALUES(?, ?)"; $stmt = mysqli_prepare($link, $query); $value_one = "hello"; Index: phpdoc/en/reference/mysqli/functions/mysqli-fetch-field.xml diff -u phpdoc/en/reference/mysqli/functions/mysqli-fetch-field.xml:1.2 phpdoc/en/reference/mysqli/functions/mysqli-fetch-field.xml:1.3 --- phpdoc/en/reference/mysqli/functions/mysqli-fetch-field.xml:1.2 Tue May 13 19:12:16 2003 +++ phpdoc/en/reference/mysqli/functions/mysqli-fetch-field.xml Sat May 17 10:31:04 2003 @@ -1,9 +1,9 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.2 $ --> +<!-- $Revision: 1.3 $ --> <refentry id="function.mysqli-fetch-field"> <refnamediv> <refname>mysqli_fetch_field</refname> - <refpurpose>Return the next field in the result set</refpurpose> + <refpurpose>Returns the next field in the result set</refpurpose> </refnamediv> <refsect1> <title>Description</title> Index: phpdoc/en/reference/mysqli/functions/mysqli-fetch-fields.xml diff -u phpdoc/en/reference/mysqli/functions/mysqli-fetch-fields.xml:1.2 phpdoc/en/reference/mysqli/functions/mysqli-fetch-fields.xml:1.3 --- phpdoc/en/reference/mysqli/functions/mysqli-fetch-fields.xml:1.2 Tue May 13 19:12:16 2003 +++ phpdoc/en/reference/mysqli/functions/mysqli-fetch-fields.xml Sat May 17 10:31:04 2003 @@ -1,9 +1,9 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.2 $ --> +<!-- $Revision: 1.3 $ --> <refentry id="function.mysqli-fetch-fields"> <refnamediv> <refname>mysqli_fetch_fields</refname> - <refpurpose>Return an array of objects representing the fields in a result set</refpurpose> + <refpurpose>Returns an array of objects representing the fields in a result set</refpurpose> </refnamediv> <refsect1> <title>Description</title> Index: phpdoc/en/reference/mysqli/functions/mysqli-fetch-object.xml diff -u phpdoc/en/reference/mysqli/functions/mysqli-fetch-object.xml:1.2 phpdoc/en/reference/mysqli/functions/mysqli-fetch-object.xml:1.3 --- phpdoc/en/reference/mysqli/functions/mysqli-fetch-object.xml:1.2 Tue May 13 19:12:16 2003 +++ phpdoc/en/reference/mysqli/functions/mysqli-fetch-object.xml Sat May 17 10:31:04 2003 @@ -1,9 +1,9 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.2 $ --> +<!-- $Revision: 1.3 $ --> <refentry id="function.mysqli-fetch-object"> <refnamediv> <refname>mysqli_fetch_object</refname> - <refpurpose>Return the current row of a result set as an object</refpurpose> + <refpurpose>Returns the current row of a result set as an object</refpurpose> </refnamediv> <refsect1> <title>Description</title> Index: phpdoc/en/reference/mysqli/functions/mysqli-param-count.xml diff -u phpdoc/en/reference/mysqli/functions/mysqli-param-count.xml:1.1 phpdoc/en/reference/mysqli/functions/mysqli-param-count.xml:1.2 --- phpdoc/en/reference/mysqli/functions/mysqli-param-count.xml:1.1 Sat Mar 15 18:01:33 2003 +++ phpdoc/en/reference/mysqli/functions/mysqli-param-count.xml Sat May 17 10:31:04 2003 @@ -1,9 +1,9 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.1 $ --> +<!-- $Revision: 1.2 $ --> <refentry id="function.mysqli-param-count"> <refnamediv> <refname>mysqli_param_count</refname> - <refpurpose>return the number of parameter for the given statement</refpurpose> + <refpurpose>Returns the number of parameter for the given statement</refpurpose> </refnamediv> <refsect1> <title>Description</title>

« previous php.doc (#969353569) next »