mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
reverting
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@153795 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
038005e811
commit
a5146131c6
31 changed files with 562 additions and 598 deletions
|
@ -1,70 +1,66 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.15 $ -->
|
||||
<!-- EN-Revision: 1.14 Maintainer: baoengb Status: ready -->
|
||||
<!-- $Revision: 1.16 $ -->
|
||||
<refentry id="function.mysqli-affected-rows">
|
||||
<refnamediv>
|
||||
<refname>mysqli_affected_rows</refname>
|
||||
<refname>mysqli->affected_rows</refname>
|
||||
<refpurpose>Obtiene el número de filas afectadas en una operación
|
||||
de MySQL previa</refpurpose>
|
||||
<refpurpose>Gets the number of affected rows in a previous MySQL operation</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
<title>Descripción</title>
|
||||
<para>Estilo por procedimientos:</para>
|
||||
<title>Description</title>
|
||||
<para>Procedural style:</para>
|
||||
<methodsynopsis>
|
||||
<type>mixto</type><methodname>mysqli_affected_rows</methodname>
|
||||
<methodparam><type>objeto</type><parameter>identificador_de_enlace</parameter></methodparam>
|
||||
<type>mixed</type><methodname>mysqli_affected_rows</methodname>
|
||||
<methodparam><type>object</type><parameter>link</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>Estilo orientado a objetos (característica):</para>
|
||||
<para>Object oriented style (property):</para>
|
||||
<classsynopsis>
|
||||
<ooclass><classname>mysqli</classname></ooclass>
|
||||
<fieldsynopsis><type>mixto</type><varname>affected_rows</varname></fieldsynopsis>
|
||||
<fieldsynopsis><type>mixed</type><varname>affected_rows</varname></fieldsynopsis>
|
||||
</classsynopsis>
|
||||
<para>
|
||||
<function>mysqli_affected_rows</function> Regresa el número de filas
|
||||
afectadas por la última consulta INSERT, UPDATE, o DELETE asociada
|
||||
con el <parameter>identificador_de_enlace</parameter> dado. Si la última
|
||||
consulta fue invalida, esta función regresará -1.
|
||||
<function>mysqli_affected_rows</function> returns the number of rows affected by the last
|
||||
INSERT, UPDATE, or DELETE query associated with the provided <parameter>link</parameter>
|
||||
parameter. If the last query was invalid, this function will return -1.
|
||||
</para>
|
||||
<note>
|
||||
<para>
|
||||
Para sentencias SELECT <function>mysqli_affected_rows</function> trabaja
|
||||
igual a <function>mysqli_num_rows</function>.
|
||||
For SELECT statements <function>mysqli_affected_rows</function> works like
|
||||
<function>mysqli_num_rows</function>.
|
||||
</para>
|
||||
</note>
|
||||
<para>
|
||||
La función <function>mysqli_affected_rows</function> s&oacoute;lo trabaja
|
||||
con consultas que modifican o afectan una tabla. En caso de que necesite el
|
||||
número de filas de una consulta SELECT, use la función
|
||||
<function>mysqli_num_rows</function> en su lugar.
|
||||
The <function>mysqli_affected_rows</function> function only works with queries which modify
|
||||
a table. In order to return the number of rows from a SELECT query, use the
|
||||
<function>mysqli_num_rows</function> function instead.
|
||||
</para>
|
||||
</refsect1>
|
||||
<refsect1>
|
||||
<title>Valores Regresados</title>
|
||||
<title>Return Values</title>
|
||||
<para>
|
||||
Un entero mayor a cero indica el número de filas afectadas u obtenidas.
|
||||
Cero indica que no se actualizaron registros para una sentencia UPDATE, no hubo
|
||||
coincidencias con la clausula WHERE en la consulta o que no se ha ejecutado
|
||||
aún ninguna consulta. -1 indica que la consulta regreso un error.
|
||||
An integer greater than zero indicates the number of rows affected or retrieved.
|
||||
Zero indicates that no records where updated for an UPDATE statement, no rows matched
|
||||
the WHERE clause in the query or that no query has yet been executed.
|
||||
-1 indicates that the query returned an error.
|
||||
</para>
|
||||
<note>
|
||||
<para>
|
||||
Si el número de filas afectadas es mayor que el valor entero máximo,
|
||||
entonces el número de filas afectadas será regresado como una cadena.
|
||||
If the number of affected rows is greater than maximal int value, the number of affected rows
|
||||
will be returned as a string.
|
||||
</para>
|
||||
</note>
|
||||
</refsect1>
|
||||
<refsect1>
|
||||
<title>Vea también</title>
|
||||
<title>See also</title>
|
||||
<para>
|
||||
<function>mysqli_num_rows</function>,
|
||||
<function>mysqli_info</function>.
|
||||
</para>
|
||||
</refsect1>
|
||||
<refsect1>
|
||||
<title>Ejemplos</title>
|
||||
<title>Example</title>
|
||||
<example>
|
||||
<title>Estilo orientado a objetos</title>
|
||||
<title>Object oriented style</title>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
|
@ -106,7 +102,7 @@ $mysqli->close();
|
|||
</programlisting>
|
||||
</example>
|
||||
<example>
|
||||
<title>Estilo por procedimientos</title>
|
||||
<title>Procedural style</title>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
|
@ -147,7 +143,7 @@ mysqli_close($link);
|
|||
</programlisting>
|
||||
</example>
|
||||
<para>
|
||||
Los ejemplos anteriores producirán la siguiente salida:
|
||||
The above examples would produce the following output:
|
||||
</para>
|
||||
<screen>
|
||||
<![CDATA[
|
||||
|
|
|
@ -1,63 +1,61 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.14 $ -->
|
||||
<!-- EN-Revision: 1.13 Maintainer: baoengb Status: ready -->
|
||||
<!-- $Revision: 1.15 $ -->
|
||||
<refentry id="function.mysqli-autocommit">
|
||||
<refnamediv>
|
||||
<refname>mysqli_autocommit</refname>
|
||||
<refname> mysqli->auto_commit</refname>
|
||||
<refpurpose>Activa o desactiva la modificación de auto-entrega de
|
||||
la base de datos</refpurpose>
|
||||
<refpurpose>Turns on or off auto-commiting database modifications</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
<title>Descripción</title>
|
||||
<para>Estilo por procedimientos:</para>
|
||||
<title>Description</title>
|
||||
<para>Procedural style:</para>
|
||||
<methodsynopsis>
|
||||
<type>bool</type><methodname>mysqli_autocommit</methodname>
|
||||
<methodparam><type>objeto</type><parameter>identificador_de_enlace</parameter></methodparam>
|
||||
<methodparam><type>bool</type><parameter>modo</parameter></methodparam>
|
||||
<methodparam><type>object</type><parameter>link</parameter></methodparam>
|
||||
<methodparam><type>bool</type><parameter>mode</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>Estilo orientado a objetos (método)</para>
|
||||
<para>Object oriented style (method)</para>
|
||||
<classsynopsis>
|
||||
<ooclass><classname>mysqli</classname></ooclass>
|
||||
<methodsynopsis>
|
||||
<type>bool</type>
|
||||
<methodname>auto_commit</methodname>
|
||||
<methodparam><type>bool</type><parameter>modo</parameter></methodparam>
|
||||
<methodparam><type>bool</type><parameter>mode</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
</classsynopsis>
|
||||
<para>
|
||||
<function>mysqli_autocommit</function> Es usado para cambiar entre on u off
|
||||
el modo de auto-entrega en las consultas para la conexión a la base
|
||||
de datos representada por el objeto <parameter>identificador_de_enlace</parameter>.
|
||||
<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>
|
||||
object.
|
||||
</para>
|
||||
<note>
|
||||
<para>
|
||||
<function>mysqli_autocommit</function> No funciona sobre tablas que no son
|
||||
del tipo transaccional (como MyISAM o ISAM).
|
||||
<function>mysqli_autocommit</function> doesn't work with non transactional
|
||||
table types (like MyISAM or ISAM).
|
||||
</para>
|
||||
<para>
|
||||
Para determinar el estado actual de auto-entrega use el comando SQL:
|
||||
To determine the current state of autocommit use the SQL command
|
||||
'SELECT @@autocommit'.
|
||||
</para>
|
||||
</note>
|
||||
</refsect1>
|
||||
<refsect1>
|
||||
<title>Valores que regresa</title>
|
||||
<title>Return values</title>
|
||||
<para>
|
||||
&return.success;
|
||||
</para>
|
||||
</refsect1>
|
||||
<refsect1>
|
||||
<title>Vea también</title>
|
||||
<title>See also</title>
|
||||
<para>
|
||||
<function>mysqli_commit</function>,
|
||||
<function>mysqli_rollback</function>.
|
||||
</para>
|
||||
</refsect1>
|
||||
<refsect1>
|
||||
<title>Ejemplos</title>
|
||||
<title>Example</title>
|
||||
<example>
|
||||
<title>Estilo orientado a objetos</title>
|
||||
<title>Object oriented style</title>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
|
@ -84,7 +82,7 @@ $mysqli->close();
|
|||
</programlisting>
|
||||
</example>
|
||||
<example>
|
||||
<title>Estilo por procedimientos</title>
|
||||
<title>Procedural style</title>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
|
@ -111,7 +109,7 @@ mysqli_close($link);
|
|||
</programlisting>
|
||||
</example>
|
||||
<para>
|
||||
Los ejemplos anteriores producirán la siguiente salida:
|
||||
The above examples would produce the following output:
|
||||
</para>
|
||||
<screen>
|
||||
<![CDATA[
|
||||
|
|
|
@ -1,26 +1,25 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.9 $ -->
|
||||
<!-- EN-Revision: 1.8 Maintainer: baoengb Status: ready -->
|
||||
<!-- $Revision: 1.10 $ -->
|
||||
<refentry id="function.mysqli-bind-param">
|
||||
<refnamediv>
|
||||
<refname>mysqli_bind_param</refname>
|
||||
<refpurpose>Alias para <function>mysqli_stmt_bind_param</function></refpurpose>
|
||||
<refpurpose>Alias for <function>mysqli_stmt_bind_param</function></refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
<title>Descripción</title>
|
||||
<title>Description</title>
|
||||
<para>
|
||||
Esta función es un alias de <function>mysqli_stmt_bind_param</function>.
|
||||
Para una descripción detallada vea
|
||||
This function is an alias of <function>mysqli_stmt_bind_param</function>.
|
||||
For a detailled descripton see description of
|
||||
<function>mysqli_stmt_bind_param</function>.
|
||||
</para>
|
||||
<note>
|
||||
<para>
|
||||
<function>mysqli_bind_param</function> es obsoleta y será removida.
|
||||
<function>mysqli_bind_param</function> is deprecated and will be removed.
|
||||
</para>
|
||||
</note>
|
||||
</refsect1>
|
||||
<refsect1>
|
||||
<title>Vea tambi&eacuite;n</title>
|
||||
<title>See also</title>
|
||||
<para>
|
||||
<function>mysqli_stmt_bind_param</function>
|
||||
</para>
|
||||
|
|
|
@ -1,26 +1,25 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.6 $ -->
|
||||
<!-- EN-Revision: 1.5 Maintainer: baoengb Status; ready -->
|
||||
<!-- $Revision: 1.7 $ -->
|
||||
<refentry id="function.mysqli-bind-result">
|
||||
<refnamediv>
|
||||
<refname>mysqli_bind_result</refname>
|
||||
<refpurpose>Alias para <function>mysqli_stmt_bind_result</function></refpurpose>
|
||||
<refpurpose>Alias for <function>mysqli_stmt_bind_result</function></refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
<title>Descripción</title>
|
||||
<title>Description</title>
|
||||
<para>
|
||||
Esta funció es un alias de <function>mysqli_stmt_bind_result</function>.
|
||||
Para una descripción detallada vea
|
||||
This function is an alias of <function>mysqli_stmt_bind_result</function>.
|
||||
For a detailled descripton see description of
|
||||
<function>mysqli_stmt_bind_result</function>.
|
||||
</para>
|
||||
<note>
|
||||
<para>
|
||||
<function>mysqli_bind_result</function> es obsoleta y será removida.
|
||||
<function>mysqli_bind_result</function> is deprecated and will be removed.
|
||||
</para>
|
||||
</note>
|
||||
</refsect1>
|
||||
<refsect1>
|
||||
<title>Vea también</title>
|
||||
<title>See also</title>
|
||||
<para>
|
||||
<function>mysqli_stmt_bind_result</function>
|
||||
</para>
|
||||
|
|
|
@ -1,80 +1,74 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.10 $ -->
|
||||
<!-- EN-Revision: 1.9 Maintainer: baoengb Status: ready -->
|
||||
<!-- $Revision: 1.11 $ -->
|
||||
<refentry id="function.mysqli-change-user">
|
||||
<refnamediv>
|
||||
<refname>mysqli_change_user</refname>
|
||||
<refname>mysqli->change_user</refname>
|
||||
<refpurpose>Cambia el usuario de la conexión a la base de datos especificada</refpurpose>
|
||||
<refpurpose>Changes the user of the specified database connection</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
<title>Descripción</title>
|
||||
<para>Estilo por procedimientos:</para>
|
||||
<title>Description</title>
|
||||
<para>Procedural style:</para>
|
||||
<methodsynopsis>
|
||||
<type>bool</type><methodname>mysqli_change_user</methodname>
|
||||
<methodparam><type>object</type><parameter>identificador_de_enlace</parameter></methodparam>
|
||||
<methodparam><type>cadena</type><parameter>usuario</parameter></methodparam>
|
||||
<methodparam><type>cadena</type><parameter>contraseña</parameter></methodparam>
|
||||
<methodparam><type>cadena</type><parameter>base_de_datos</parameter></methodparam>
|
||||
<methodparam><type>object</type><parameter>link</parameter></methodparam>
|
||||
<methodparam><type>string</type><parameter>user</parameter></methodparam>
|
||||
<methodparam><type>string</type><parameter>password</parameter></methodparam>
|
||||
<methodparam><type>string</type><parameter>database</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>Estilo orientado a objetos (método):</para>
|
||||
<para>Object oriented style (method):</para>
|
||||
<classsynopsis>
|
||||
<ooclass><classname>mysqli</classname></ooclass>
|
||||
<methodsynopsis>
|
||||
<type>bool</type>
|
||||
<methodname>change_user</methodname>
|
||||
<methodparam><type>cadena</type><parameter>usuario</parameter></methodparam>
|
||||
<methodparam><type>cadena</type><parameter>contraseńa</parameter></methodparam>
|
||||
<methodparam><type>cadena</type><parameter>base_de_datos</parameter></methodparam>
|
||||
<methodparam><type>string</type><parameter>user</parameter></methodparam>
|
||||
<methodparam><type>string</type><parameter>password</parameter></methodparam>
|
||||
<methodparam><type>string</type><parameter>database</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
</classsynopsis>
|
||||
<para>
|
||||
<function>mysqli_change_user</function> Es usada para cambiar el usuario para
|
||||
la conexión de base de datos indicada por el parámetro
|
||||
<parameter>identificador_de_enlace</parameter> y para fijar la actual base de datos a la específicada
|
||||
por el parámetro <parameter>base_de_datos</parameter>.
|
||||
<function>mysqli_change_user</function> is used to change the user of the specified
|
||||
database connection as given by the <parameter>link</parameter> parameter and to set the
|
||||
current database to that specified by the <parameter>database</parameter> parameter.
|
||||
</para>
|
||||
<para>
|
||||
Si se desea, se puede pasar el valor &null; en lugar del parámetro
|
||||
<parameter>base_de_datos</parameter> resultando en solo cambiar el usaurio y no
|
||||
seleccionar la base de datos. Para seleccionar una base de datos en este caso
|
||||
use la función <function>mysqli_select_db</function>.
|
||||
If desired, the &null; value may be passed in place of the <parameter>database</parameter>
|
||||
parameter resulting in only changing the user and not selecting a database. To select
|
||||
a database in this case use the <function>mysqli_select_db</function> function.
|
||||
</para>
|
||||
<para>
|
||||
Para poder cambiar de usuario de forma exitosa se debe proveer de un
|
||||
<parameter>usuario</parameter> y <parameter>contraseña</parameter>
|
||||
validos, y tales parámetros debe contar con los suficientes permisos
|
||||
para acceder a la base de datos deseada. Si por cualquier razón la
|
||||
autorización falla, el actual usuario autenticado permanecerá activo.
|
||||
In order to successfully change users a valid <parameter>username</parameter> and
|
||||
<parameter>password</parameter> parameters must be provided and that user must have
|
||||
sufficient permissions to access the desired database. If for any reason authorization
|
||||
fails, the current user authentication will remain.
|
||||
</para>
|
||||
<note>
|
||||
<para>
|
||||
El uso de este comando siempre producirá que la conexión actual
|
||||
a la base de datos se comporte como si fuera una nueva conexión,
|
||||
sin importar si la operación fue completada exitosamente. Este reinicio
|
||||
implica el hacer la restauración no actualizada "rollback" de cualquier
|
||||
transacción activa, cerrar todas las tablas temporales y des-asegurar
|
||||
todas las tablas aseguradas.
|
||||
Using this command will always cause the current database connection to behave as if
|
||||
was a completely new database connection, regardless of if the operation was completed
|
||||
successfully. This reset includes performing a rollback on any active transactions,
|
||||
closing all temporary tables, and unlocking all locked tables.
|
||||
</para>
|
||||
</note>
|
||||
</refsect1>
|
||||
<refsect1>
|
||||
<title>Valores regresados</title>
|
||||
<title>Return Values</title>
|
||||
<para>
|
||||
&return.success;
|
||||
</para>
|
||||
</refsect1>
|
||||
<refsect1>
|
||||
<title>Vea también:</title>
|
||||
<title>See also:</title>
|
||||
<para>
|
||||
<function>mysqli_connect</function>
|
||||
<function>mysqli_select_db</function>
|
||||
</para>
|
||||
</refsect1>
|
||||
<refsect1>
|
||||
<title>Ejemplos</title>
|
||||
<title>Example</title>
|
||||
<example>
|
||||
<title>Estilo orientado a objetos</title>
|
||||
<title>Object oriented style</title>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
|
@ -115,7 +109,7 @@ $mysqli->close();
|
|||
</programlisting>
|
||||
</example>
|
||||
<example>
|
||||
<title>Estilo por procedimientos</title>
|
||||
<title>Procedural style</title>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
|
@ -155,7 +149,7 @@ mysqli_close($link);
|
|||
</programlisting>
|
||||
</example>
|
||||
<para>
|
||||
Los ejemplos anteriores producirán la siguiente salida:
|
||||
The above examples would produce the following output:
|
||||
</para>
|
||||
<screen>
|
||||
<![CDATA[
|
||||
|
|
|
@ -1,51 +1,47 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.10 $ -->
|
||||
<!-- EN-Revision: 1.9 Maintainer: baoengb Status: ready -->
|
||||
<!-- $Revision: 1.11 $ -->
|
||||
<refentry id="function.mysqli-character-set-name">
|
||||
<refnamediv>
|
||||
<refname>mysqli_character_set_name</refname>
|
||||
<refname>mysqli->character_set_name</refname>
|
||||
<refpurpose>Regresa el conjunto de caracteres determinados por default para
|
||||
la conexión de base de datos</refpurpose>
|
||||
<refpurpose>Returns the default character set for the database connection</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
<title>Descripción</title>
|
||||
<para>Estilo por procedumientos:</para>
|
||||
<title>Description</title>
|
||||
<para>Procedural style:</para>
|
||||
<methodsynopsis>
|
||||
<type>cadena</type><methodname>mysqli_character_set_name</methodname>
|
||||
<methodparam><type>objeto</type><parameter>identificador_de_enlace</parameter></methodparam>
|
||||
<type>string</type><methodname>mysqli_character_set_name</methodname>
|
||||
<methodparam><type>object</type><parameter>link</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>Estilo orientado a objetos (método):</para>
|
||||
<para>Object oriented style (method):</para>
|
||||
<classsynopsis>
|
||||
<ooclass><classname>mysqli</classname></ooclass>
|
||||
<methodsynopsis>
|
||||
<type>cadena</type>
|
||||
<type>string</type>
|
||||
<methodname>character_set_name</methodname>
|
||||
<methodparam><type>void</type><parameter></parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
</classsynopsis>
|
||||
<para>
|
||||
Regresa el conjuntos de caracteres actual, determinado para la conexión
|
||||
de base de datos específicada por el parámetro
|
||||
<parameter>identificador_de_enlace</parameter>.
|
||||
Returns the current character set for the database connection specified by the
|
||||
<parameter>link</parameter> parameter.
|
||||
</para>
|
||||
</refsect1>
|
||||
<refsect1>
|
||||
<title>Valores regresados</title>
|
||||
<para>El conjunto de caracteres por defecto, determinados para la
|
||||
conexión actual</para>
|
||||
<title>Return values</title>
|
||||
<para>The default character set for the current connection</para>
|
||||
</refsect1>
|
||||
<refsect1>
|
||||
<title>Vea también</title>
|
||||
<title>See also</title>
|
||||
<para>
|
||||
<function>mysqli_client_encoding</function>.
|
||||
<function>mysqli_real_escape_string</function>.
|
||||
</para>
|
||||
</refsect1>
|
||||
<refsect1>
|
||||
<title>Ejemplos</title>
|
||||
<title>Example</title>
|
||||
<example>
|
||||
<title>Estilo orientado a objetos</title>
|
||||
<title>Object oriented style</title>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
|
@ -68,7 +64,7 @@ $mysqli->close();
|
|||
</programlisting>
|
||||
</example>
|
||||
<example>
|
||||
<title>Estilo por procedimientos</title>
|
||||
<title>Procedural style</title>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
|
@ -92,7 +88,7 @@ mysqli_close($link);
|
|||
</programlisting>
|
||||
</example>
|
||||
<para>
|
||||
Los ejemplos anteriores producirán la siguiente salida:
|
||||
The above examples would be produce the following output:
|
||||
</para>
|
||||
<screen>
|
||||
<![CDATA[
|
||||
|
|
|
@ -1,21 +1,20 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.3 $ -->
|
||||
<!-- EN-Revision: 1.2 Maintainer: baoengb Status: ready -->
|
||||
<!-- $Revision: 1.4 $ -->
|
||||
<refentry id="function.mysqli-client-encoding">
|
||||
<refnamediv>
|
||||
<refname>mysqli_client_encoding</refname>
|
||||
<refpurpose>Alias de <function>mysqli_character_set_name</function></refpurpose>
|
||||
<refpurpose>Alias of <function>mysqli_character_set_name</function></refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
<title>Descripción</title>
|
||||
<title>Description</title>
|
||||
<para>
|
||||
Esta función es un alias de <function>mysqli_character_set_name</function>.
|
||||
Para una descripción detallada vea
|
||||
This function is an alias of <function>mysqli_character_set_name</function>.
|
||||
For a detailled descripton see description of
|
||||
<function>mysqli_character_set_name</function>.
|
||||
</para>
|
||||
</refsect1>
|
||||
<refsect1>
|
||||
<title>Vea también</title>
|
||||
<title>See also</title>
|
||||
<para>
|
||||
<function>mysqli_client_encoding</function>.
|
||||
<function>mysqli_real_escape_string</function>.
|
||||
|
|
|
@ -1,20 +1,19 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.7 $ -->
|
||||
<!-- EN-Revision: 1.6 Maintainer: baoengb Status: ready -->
|
||||
<!-- $Revision: 1.8 $ -->
|
||||
<refentry id="function.mysqli-close">
|
||||
<refnamediv>
|
||||
<refname>mysqli_close</refname>
|
||||
<refname>mysqli->close</refname>
|
||||
<refpurpose>Cierra la conexión de base de datos previamente abierta</refpurpose>
|
||||
<refpurpose>Closes a previously opened database connection</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
<title>Descripción</title>
|
||||
<para>Estilo por procedimientos:</para>
|
||||
<title>Description</title>
|
||||
<para>Procedural style:</para>
|
||||
<methodsynopsis>
|
||||
<type>bool</type><methodname>mysqli_close</methodname>
|
||||
<methodparam><type>objeto</type><parameter>identificador_de_enlace</parameter></methodparam>
|
||||
<methodparam><type>object</type><parameter>link</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>Estilo orientado a objetos (método):</para>
|
||||
<para>Object oriented style (method):</para>
|
||||
<classsynopsis>
|
||||
<ooclass><classname>mysqli</classname></ooclass>
|
||||
<methodsynopsis>
|
||||
|
@ -24,19 +23,18 @@
|
|||
</methodsynopsis>
|
||||
</classsynopsis>
|
||||
<para>
|
||||
La función <function>mysqli_close</function> cierra una conexión
|
||||
de base de datos previamente abierta, específicada por el parámetro
|
||||
<parameter>identificador_de_enlace<parameter>.
|
||||
The <function>mysqli_close</function> function closes a previously opened database
|
||||
connection specified by the <parameter>link</parameter> parameter.
|
||||
</para>
|
||||
</refsect1>
|
||||
<refsect1>
|
||||
<title>Valores regresados</title>
|
||||
<title>Return values</title>
|
||||
<para>
|
||||
&return.success;
|
||||
</para>
|
||||
</refsect1>
|
||||
<refsect1>
|
||||
<title>Vea también</title>
|
||||
<title>See also</title>
|
||||
<para>
|
||||
<function>mysqli_connect</function>,
|
||||
<function>mysqli_init</function>,
|
||||
|
|
|
@ -1,20 +1,19 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.8 $ -->
|
||||
<!-- EN-Revision: 1.7 Maintainer: baoengb Status: ready -->
|
||||
<!-- $Revision: 1.9 $ -->
|
||||
<refentry id="function.mysqli-commit">
|
||||
<refnamediv>
|
||||
<refname>mysqli_commit</refname>
|
||||
<refname>mysqli->commit</refname>
|
||||
<refpurpose>Completa la transacción actual</refpurpose>
|
||||
<refpurpose>Commits the current transaction</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
<title>Descripción</title>
|
||||
<para>Estilo por procedimientos:</para>
|
||||
<title>Description</title>
|
||||
<para>Procedural style:</para>
|
||||
<methodsynopsis>
|
||||
<type>bool</type><methodname>mysqli_commit</methodname>
|
||||
<methodparam><type>objeto</type><parameter>identificador_de_enlace</parameter></methodparam>
|
||||
<methodparam><type>object</type><parameter>link</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>Estilo orientado a objetos (método)</para>
|
||||
<para>Object oriented style (method)</para>
|
||||
<classsynopsis>
|
||||
<ooclass><classname>mysqli</classname></ooclass>
|
||||
<methodsynopsis>
|
||||
|
@ -24,29 +23,28 @@
|
|||
</methodsynopsis>
|
||||
</classsynopsis>
|
||||
<para>
|
||||
Entrega la transacción actual para la conexión de base de datos
|
||||
específicada por el parametro
|
||||
<parameter>link</parameter>.
|
||||
Commits the current transaction for the database connection specified by the
|
||||
<parameter>link</parameter> parameter.
|
||||
</para>
|
||||
</refsect1>
|
||||
<refsect1>
|
||||
<title>Valores regresados</title>
|
||||
<title>Return values</title>
|
||||
<para>
|
||||
&return.success;
|
||||
</para>
|
||||
</refsect1>
|
||||
<refsect1>
|
||||
<title>Vea también</title>
|
||||
<title>See also</title>
|
||||
<para>
|
||||
<function>mysqli_autocommit</function>,
|
||||
<function>mysqli_rollback</function>.
|
||||
</para>
|
||||
</refsect1>
|
||||
<refsect1>
|
||||
<title>Ejemplos</title>
|
||||
<title>Examples</title>
|
||||
<para>
|
||||
<example>
|
||||
<title>Estilo orientado a objetos</title>
|
||||
<title>Object oriented style</title>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
|
@ -80,7 +78,7 @@ $mysqli->close();
|
|||
</programlisting>
|
||||
</example>
|
||||
<example>
|
||||
<title>Estilo por procedimientos</title>
|
||||
<title>Procedural style</title>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
|
|
|
@ -1,45 +1,39 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.4 $ -->
|
||||
<!-- EN-Revision: 1.3 Maintainer: baoengb Status: ready -->
|
||||
<!-- $Revision: 1.5 $ -->
|
||||
<refentry id="function.mysqli-connect-errno">
|
||||
<refnamediv>
|
||||
<refname>mysqli_connect_errno</refname>
|
||||
<refpurpose>Regresa el código de error de la última llamada a la conexión</refpurpose>
|
||||
<refpurpose>Returns the error code from last connect call</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
<title>Descripción</title>
|
||||
<title>Description</title>
|
||||
<methodsynopsis>
|
||||
<type>int</type><methodname>mysqli_connect_errno</methodname>
|
||||
<methodparam><type>void</type><parameter></parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
La función <function>mysqli_connect_errno</function> regresará
|
||||
el últumo código de error generado por
|
||||
<function>mysqli_connect</function>.
|
||||
Si no han ocurrido errores, esta función regresará cero.
|
||||
The <function>mysqli_connect_errno</function> function will return the last error code number
|
||||
for last call to <function>mysqli_connect</function>.
|
||||
If no errors have occured, this function will return zero.
|
||||
</para>
|
||||
<note>
|
||||
<para>
|
||||
Los números de error del cliente, están listados en el archivo
|
||||
de MySQL <filename>errmsg.h</filename>.
|
||||
Los números de error del servidor, están listados en el archivo
|
||||
de MySQL <filename>mysqld_error.h</filename>.
|
||||
En la distribución de las fuentes de MySQL, tu puedes encontrar una
|
||||
lista completa de los mensajes de error y de los números de error
|
||||
en el documento <filename>Docs/mysqld_error.txt</filename>.
|
||||
Client error message numbers are listed in the MySQL <filename>errmsg.h</filename> header file,
|
||||
server error message numbers are listed in <filename>mysqld_error.h</filename>.
|
||||
In the MySQL source distribution you can find a complete list of error messages and error numbers
|
||||
in the file <filename>Docs/mysqld_error.txt</filename>.
|
||||
</para>
|
||||
</note>
|
||||
</refsect1>
|
||||
<refsect1>
|
||||
<title>Valores regresados</title>
|
||||
<title>Return values</title>
|
||||
<para>
|
||||
Un código de error para la última llamada a <function>mysqli_connect</function>,
|
||||
si ésta falla.
|
||||
Si no hay error entonces se regresa Cero.
|
||||
An error code value for the last call to <function>mysqli_connect</function>, if it failed.
|
||||
zero means no error occurred.
|
||||
</para>
|
||||
</refsect1>
|
||||
<refsect1>
|
||||
<title>Vea también</title>
|
||||
<title>See also</title>
|
||||
<para>
|
||||
<function>mysqli_connect</function>,
|
||||
<function>mysqli_connect_error</function>,
|
||||
|
@ -49,10 +43,10 @@
|
|||
</para>
|
||||
</refsect1>
|
||||
<refsect1>
|
||||
<title>Ejemplo</title>
|
||||
<title>Example</title>
|
||||
<para>
|
||||
<example>
|
||||
<title>mysqli_connect_errno</title>
|
||||
<title>mysqli_connect_errno sample</title>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
|
|
|
@ -1,37 +1,33 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.4 $ -->
|
||||
<!-- EN-Revision: 1.3 Maintainer: baoengb Status: ready -->
|
||||
<!-- $Revision: 1.5 $ -->
|
||||
<refentry id="function.mysqli-connect-error">
|
||||
<refnamediv>
|
||||
<refname>mysqli_connect_error</refname>
|
||||
<refpurpose>Regresa una descripción del último error de la
|
||||
conexión</refpurpose>
|
||||
<refpurpose>Returns a string description of the last connect error</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
<title>Descripción</title>
|
||||
<title>Description</title>
|
||||
<methodsynopsis>
|
||||
<type>cadena</type><methodname>mysqli_connect_error</methodname>
|
||||
<type>string</type><methodname>mysqli_connect_error</methodname>
|
||||
<methodparam><type>void</type><parameter></parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
La función <function>mysqli_connect_error</function> es identica a
|
||||
la función <function>mysqli_connect_errno</function>, excepto en que
|
||||
en vez de regresar el número del código de error, la función
|
||||
<function>mysqli_connect_error</function> regresará el mensaje de error
|
||||
correspondiente a la última llamada a la función <function>mysqli_connect</function>.
|
||||
Si no ha ocurrido error, está función regresará una cadena
|
||||
vacía.
|
||||
The <function>mysqli_connect_error</function> function is identical to the corresponding
|
||||
<function>mysqli_connect_errno</function> function in every way, except instead of returning
|
||||
an integer error code the <function>mysqli_connect_error</function> function will return
|
||||
a string representation of the last error to occur for the last
|
||||
<function>mysqli_connect</function> call.
|
||||
If no error has occured, this function will return an empty string.
|
||||
</para>
|
||||
</refsect1>
|
||||
<refsect1>
|
||||
<title>Valores regresados</title>
|
||||
<title>Return values</title>
|
||||
<para>
|
||||
Una cadena que describe el error o una cadena vacía si no ha ocurrido
|
||||
error.
|
||||
A string that describes the error. An empty string if no error occurred.
|
||||
</para>
|
||||
</refsect1>
|
||||
<refsect1>
|
||||
<title>Vea también</title>
|
||||
<title>See also</title>
|
||||
<para>
|
||||
<function>mysqli_connect</function>,
|
||||
<function>mysqli_connect_errno</function>,
|
||||
|
@ -41,10 +37,10 @@
|
|||
</para>
|
||||
</refsect1>
|
||||
<refsect1>
|
||||
<title>Ejemplo</title>
|
||||
<title>Example</title>
|
||||
<para>
|
||||
<example>
|
||||
<title>mysqli_connect_error</title>
|
||||
<title>mysqli_connect_error sample</title>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
|
|
|
@ -1,90 +1,80 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.14 $ -->
|
||||
<!-- EN-Revision: 1.13 Maintainer: baoengb Status: ready -->
|
||||
<!-- $Revision: 1.15 $ -->
|
||||
<refentry id="function.mysqli-connect">
|
||||
<refnamediv>
|
||||
<refname>mysqli_connect</refname>
|
||||
<refname>mysqli()</refname>
|
||||
<refpurpose>Abre una nueva conexión al servidor MySQL</refpurpose>
|
||||
<refpurpose>Open a new connection to the MySQL server</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
<title>Descripción</title>
|
||||
<para>Estilo por procedimientos</para>
|
||||
<title>Description</title>
|
||||
<para>Procedural style</para>
|
||||
<methodsynopsis>
|
||||
<type>objeto</type><methodname>mysqli_connect</methodname>
|
||||
<methodparam choice='opt'><type>cadena</type><parameter>equipo_anfitrión</parameter></methodparam>
|
||||
<methodparam choice='opt'><type>cadena</type><parameter>usuario</parameter></methodparam>
|
||||
<methodparam choice='opt'><type>cadena</type><parameter>contraseña</parameter></methodparam>
|
||||
<methodparam choice='opt'><type>cadena</type><parameter>base_de_datos</parameter></methodparam>
|
||||
<methodparam choice='opt'><type>int</type><parameter>puerto</parameter></methodparam>
|
||||
<methodparam choice='opt'><type>cadena</type><parameter>socket</parameter></methodparam>
|
||||
<type>object</type><methodname>mysqli_connect</methodname>
|
||||
<methodparam choice='opt'><type>string</type><parameter>host</parameter></methodparam>
|
||||
<methodparam choice='opt'><type>string</type><parameter>username</parameter></methodparam>
|
||||
<methodparam choice='opt'><type>string</type><parameter>passwd</parameter></methodparam>
|
||||
<methodparam choice='opt'><type>string</type><parameter>dbname</parameter></methodparam>
|
||||
<methodparam choice='opt'><type>int</type><parameter>port</parameter></methodparam>
|
||||
<methodparam choice='opt'><type>string</type><parameter>socket</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>Estilo orientado a objetos (constructor):</para>
|
||||
<para>Object oriented style (constructor):</para>
|
||||
<classsynopsis>
|
||||
<ooclass><classname>mysqli</classname></ooclass>
|
||||
<constructorsynopsis>
|
||||
<methodname>__construct</methodname>
|
||||
<methodparam choice='opt'><type>cadena</type><parameter>equipo_anfitrión</parameter></methodparam>
|
||||
<methodparam choice='opt'><type>cadena</type><parameter>usuario</parameter></methodparam>
|
||||
<methodparam choice='opt'><type>cadena</type><parameter>contraseña</parameter></methodparam>
|
||||
<methodparam choice='opt'><type>cadena</type><parameter>base_de_datos</parameter></methodparam>
|
||||
<methodparam choice='opt'><type>int</type><parameter>puerto</parameter></methodparam>
|
||||
<methodparam choice='opt'><type>cadena</type><parameter>socket</parameter></methodparam>
|
||||
<methodparam choice='opt'><type>string</type><parameter>host</parameter></methodparam>
|
||||
<methodparam choice='opt'><type>string</type><parameter>username</parameter></methodparam>
|
||||
<methodparam choice='opt'><type>string</type><parameter>passwd</parameter></methodparam>
|
||||
<methodparam choice='opt'><type>string</type><parameter>dbname</parameter></methodparam>
|
||||
<methodparam choice='opt'><type>int</type><parameter>port</parameter></methodparam>
|
||||
<methodparam choice='opt'><type>string</type><parameter>socket</parameter></methodparam>
|
||||
</constructorsynopsis>
|
||||
</classsynopsis>
|
||||
<para>
|
||||
La función <function>mysqli_connect</function> intenta abrir una conexión
|
||||
al servidor MySQL que se está ejecutando en <parameter>equipo_afitrión</parameter>
|
||||
el cual puede ser el nombre de un equipo o una dirección IP. Pasando el
|
||||
valor &null; o la cadena "localhost" a este parámetro, se asume que
|
||||
está en el mismo equipo. Cuando sea posible se usar&Acute; "pipes" en vez
|
||||
del protocolo TCP/IP. En caso exitoso, la función <function>mysqli_connect</function>
|
||||
regresará un objeto representando la conexión a la base de datos,
|
||||
o &false; en caso contrario.
|
||||
The <function>mysqli_connect</function> function attempts to open a connection to the MySQL Server
|
||||
running on <parameter>host</parameter> which can be either a host name or an IP address. Passing the
|
||||
&null; value or the string "localhost" to this parameter, the local host is assumed. When possible,
|
||||
pipes will be used instead of the TCP/IP protocol. If successful, the <function>mysqli_connect</function>
|
||||
will return an object representing the connection to the database, or &false; on failure.
|
||||
</para>
|
||||
<para>
|
||||
En los parámetros <parameter>usuario</parameter> y <parameter>contraseña</parameter>
|
||||
se específica el nombre de usuario y contraseña con los cuales
|
||||
se debe conectar al servidor MySQL. Si no se da contraseña el valor
|
||||
&null; es tomado, el servidor MySQL intentará verificar al usuario
|
||||
contra los registros de usuarios que esten sin contraseña. Esto permite
|
||||
que un usuario pueda ser usado con diferentes permisos (dependiendo si se
|
||||
provee contraseña o no).
|
||||
The <parameter>username</parameter> and <parameter>password</parameter> parameters specify the
|
||||
username and password under which to connect to the MySQL server. If the password is not provided
|
||||
(the &null; value is passed), the MySQL server will attempt to authenticate the user against those
|
||||
user records which have no password only. This allows one username to be used with different
|
||||
permissions (depending on if a password as provided or not).
|
||||
</para>
|
||||
<para>
|
||||
Si se específica el parámetro <parameter>base_de_datos</parameter>
|
||||
especificará la base de datos a usar por defecto cuando se ejecuten
|
||||
consultas.
|
||||
The <parameter>dbname</parameter> parameter if provided will specify the default database to be
|
||||
used when performing queries.
|
||||
</para>
|
||||
<para>
|
||||
Los parámetros <parameter>puerto</parameter> y <parameter>socket</parameter>
|
||||
son usados junto con el parámetro <parameter>equipo_anfitrión</parameter>
|
||||
para controla a futuro como conectar al servidor de base de datos.
|
||||
El parámetro <parameter>puerto</parameter> específica el número
|
||||
de puerto al que se intenta conectar en el servidor MySQL, mientras que el
|
||||
parámetro <parameter>socket</parameter> específica el socket o
|
||||
la pipa nombrada "pipe" que debe ser usada.
|
||||
The <parameter>port</parameter> and <parameter>socket</parameter> parameters are used in
|
||||
conjunction with the <parameter>host</parameter> parameter to further control how to connect
|
||||
to the database server. The <parameter>port</parameter> parameter specifies the port number to
|
||||
attempt to connect to the MySQL server on, while the <parameter>socket</parameter> parameter
|
||||
specifies the socket or named pipe that should be used.
|
||||
</para>
|
||||
<note>
|
||||
<para>
|
||||
Especificar el parámetro <parameter>socket</parameter> no determina
|
||||
explícitamente el tipo de conexión a ser usado cuando se conecta
|
||||
al servidor MySQL. El parámetro <parameter>equipo_anfitrión</parameter>
|
||||
determina como se hace la conexión a la base de datos MySQL.
|
||||
Specifying the <parameter>socket</parameter> parameter will not explicitly determine the type
|
||||
of connection to be used when connecting to the MySQL server. How the connection is made to the
|
||||
MySQL database is determined by the <parameter>host</parameter> parameter.
|
||||
</para>
|
||||
</note>
|
||||
</refsect1>
|
||||
<refsect1>
|
||||
<title>Valores regresados</title>
|
||||
<title>Return values</title>
|
||||
<para>
|
||||
Regresa un objeto el cuál representa la conexión al servidor
|
||||
MySQL o &false; en caso contrario.
|
||||
Returns a object which represents the connection to a MySQL Server or
|
||||
&false; if the connection failed.
|
||||
</para>
|
||||
</refsect1>
|
||||
<refsect1>
|
||||
<title>Ejemplos</title>
|
||||
<title>Example</title>
|
||||
<example>
|
||||
<title>Estilo orientado a objetos</title>
|
||||
<title>Object oriented style</title>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
|
@ -105,7 +95,7 @@ $mysqli->close();
|
|||
</programlisting>
|
||||
</example>
|
||||
<example>
|
||||
<title>Estilo por procedimientos</title>
|
||||
<title>Procedural style</title>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
|
@ -126,7 +116,7 @@ mysqli_close($link);
|
|||
</programlisting>
|
||||
</example>
|
||||
<para>
|
||||
Los ejemplos anteriores producirán la siguiente salida:
|
||||
The above examples would produce the following output:
|
||||
</para>
|
||||
<screen>
|
||||
<![CDATA[
|
||||
|
|
|
@ -1,52 +1,49 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.13 $ -->
|
||||
<!-- EN-Revision: 1.12 Maintainer: baoengb Status: ready -->
|
||||
<!-- $Revision: 1.14 $ -->
|
||||
<refentry id="function.mysqli-data-seek">
|
||||
<refnamediv>
|
||||
<refname>mysqli_data_seek</refname>
|
||||
<refname>result->data_seek</refname>
|
||||
<refpurpose>Ajusta el apuntador arbitrariamente a una fila en el resultado</refpurpose>
|
||||
<refpurpose>Adjusts the result pointer to an arbitary row in the result</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
<title>Descripción</title>
|
||||
<para>Estilo por procedimientos:</para>
|
||||
<title>Description</title>
|
||||
<para>Procedural style:</para>
|
||||
<methodsynopsis>
|
||||
<type>bool</type><methodname>mysqli_data_seek</methodname>
|
||||
<methodparam><type>objeto</type><parameter>resultado</parameter></methodparam>
|
||||
<methodparam><type>int</type><parameter>posición</parameter></methodparam>
|
||||
<methodparam><type>object</type><parameter>result</parameter></methodparam>
|
||||
<methodparam><type>int</type><parameter>offset</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>Estilo orientado a objetos (método):</para>
|
||||
<para>Object oriented style (method):</para>
|
||||
<classsynopsis>
|
||||
<ooclass><classname>resultado</classname></ooclass>
|
||||
<ooclass><classname>result</classname></ooclass>
|
||||
<methodsynopsis>
|
||||
<type>bool</type>
|
||||
<methodname>data_seek</methodname>
|
||||
<methodparam><type>int</type><parameter>posición</parameter></methodparam>
|
||||
<methodparam><type>int</type><parameter>offset</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
</classsynopsis>
|
||||
<para>
|
||||
La función <function>mysqli_data_seek</function> busca arbitrariamente
|
||||
apuntar al valor específicado por <parameter>posición</parameter>
|
||||
en el conjunto resultante representado por <parameter>result</parameter>.
|
||||
Los valores del parámetro <parameter>posición</parameter>
|
||||
deben estar entre cero y el total de filas menus uno (0 .. <function>mysqli_num_rows</function> - 1).
|
||||
The <function>mysqli_data_seek</function> function seeks to an arbitrary result pointer
|
||||
specified by the <parameter>offset</parameter> in the result set represented by
|
||||
<parameter>result</parameter>. The <parameter>offset</parameter> parameter must be between
|
||||
zero and the total number of rows minus one (0..<function>mysqli_num_rows</function> - 1).
|
||||
</para>
|
||||
<note>
|
||||
<para>
|
||||
Está función solo puede ser usada con resultados sin almacenamiento
|
||||
intermedio logrados por el uso de las funciones
|
||||
<function>mysqli_store_result</function> o <function>mysqli_query</function>.
|
||||
This function can only be used with unbuffered results attained from the use of the
|
||||
<function>mysqli_store_result</function> or <function>mysqli_query</function> functions.
|
||||
</para>
|
||||
</note>
|
||||
</refsect1>
|
||||
<refsect1>
|
||||
<title>Valores regresados</title>
|
||||
<title>Return values</title>
|
||||
<para>
|
||||
&return.success;
|
||||
</para>
|
||||
</refsect1>
|
||||
<refsect1>
|
||||
<title>Vea también</title>
|
||||
<title>See also</title>
|
||||
<para>
|
||||
<function>mysqli_store_result</function>,
|
||||
<function>mysqli_fetch_row</function>,
|
||||
|
@ -54,9 +51,9 @@
|
|||
</para>
|
||||
</refsect1>
|
||||
<refsect1>
|
||||
<title>Ejemplos</title>
|
||||
<title>Example</title>
|
||||
<example>
|
||||
<title>Estilo orientado a onjetos</title>
|
||||
<title>Object oriented style</title>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
|
@ -91,7 +88,7 @@ $mysqli->close();
|
|||
</programlisting>
|
||||
</example>
|
||||
<example>
|
||||
<title>Estilo por procedimientos</title>
|
||||
<title>Procedural style</title>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
|
@ -127,7 +124,7 @@ mysqli_close($link);
|
|||
</programlisting>
|
||||
</example>
|
||||
<para>
|
||||
Los ejemplos anteriores producirán la siguiente salida:
|
||||
The above examples would produce the following output:
|
||||
</para>
|
||||
<screen>
|
||||
<![CDATA[
|
||||
|
|
|
@ -1,46 +1,44 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.8 $ -->
|
||||
<!-- EN-Revision: 1.7 Maintainer: baoengb Status: ready -->
|
||||
<!-- $Revision: 1.9 $ -->
|
||||
<refentry id="function.mysqli-debug">
|
||||
<refnamediv>
|
||||
<refname>mysqli_debug</refname>
|
||||
<refpurpose>Realiza operaciones de rastreo de errores</refpurpose>
|
||||
<refpurpose>Performs debugging operations</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
<title>Descripción</title>
|
||||
<title>Description</title>
|
||||
<methodsynopsis>
|
||||
<type>void</type><methodname>mysqli_debug</methodname>
|
||||
<methodparam><type>cadena</type><parameter>acción</parameter></methodparam>
|
||||
<methodparam><type>string</type><parameter>debug</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
La función <function>mysqli_debug</function> es usada para realizar
|
||||
operaciones de rastreo y eliminación de errores utilizando la libreria
|
||||
"Fred Fish". El parámetro <parameter>acción</parameter>
|
||||
es una cadena que representa las operaciones de rastreo de errores a realizar.
|
||||
The <function>mysqli_debug</function> function is used to perform debugging
|
||||
operations using the Fred Fish debugging library. The <parameter>debug</parameter>
|
||||
parameter is a string representing the debugging operation to perform.
|
||||
</para>
|
||||
<note>
|
||||
<para>
|
||||
Para usar la funció <function>mysqli_debug</function> se debe compilar
|
||||
el cliente de MySQL con soporte para rastreo de errores "debugging".
|
||||
To use the <function>mysqli_debug</function> function you must complile
|
||||
the MySQL client library to support debugging.
|
||||
</para>
|
||||
</note>
|
||||
</refsect1>
|
||||
<refsect1>
|
||||
<title>Valores regresados</title>
|
||||
<para><function>mysqli_debug</function> no regresa ningún valor.</para>
|
||||
<title>Return values</title>
|
||||
<para><function>mysqli_debug</function> doesn't return any value.</para>
|
||||
</refsect1>
|
||||
<refsect1>
|
||||
<title>Vea también</title>
|
||||
<title>See also</title>
|
||||
<para>
|
||||
<function>mysqli_dump_debug_info</function>,
|
||||
<function>mysqli_report</function>
|
||||
</para>
|
||||
</refsect1>
|
||||
<refsect1>
|
||||
<title>Ejemplo</title>
|
||||
<title>Example</title>
|
||||
<para>
|
||||
<example>
|
||||
<title>Generar un archivo de rastreo</title>
|
||||
<title>Generating a Trace File</title>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
|
|
|
@ -1,16 +1,15 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.4 $ -->
|
||||
<!-- EN-Revision: 1.3 Maintainer: baoengb Status: ready -->
|
||||
<!-- $Revision: 1.5 $ -->
|
||||
<refentry id="function.mysqli-disable-reads-from-master">
|
||||
<refnamediv>
|
||||
<refname>mysqli_disable_reads_from_master</refname>
|
||||
<refpurpose></refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
<title>Descripción</title>
|
||||
<title>Description</title>
|
||||
<methodsynopsis>
|
||||
<type>void</type><methodname>mysqli_disable_reads_from_master</methodname>
|
||||
<methodparam><type>int</type><parameter>identificador_de_enlace</parameter></methodparam>
|
||||
<methodparam><type>resource</type><parameter>link</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
|
||||
&warn.experimental.func;
|
||||
|
|
|
@ -1,16 +1,15 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.6 $ -->
|
||||
<!-- EN-Revision: 1.5 Maintainer: baoengb Status: ready -->
|
||||
<!-- $Revision: 1.7 $ -->
|
||||
<refentry id="function.mysqli-disable-rpl-parse">
|
||||
<refnamediv>
|
||||
<refname>mysqli_disable_rpl_parse</refname>
|
||||
<refpurpose></refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
<title>Descripción</title>
|
||||
<title>Description</title>
|
||||
<methodsynopsis>
|
||||
<type>void</type><methodname>mysqli_disable_rpl_parse</methodname>
|
||||
<methodparam><type>objeto</type><parameter>identificador_de_enlace</parameter></methodparam>
|
||||
<methodparam><type>object</type><parameter>link</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
|
||||
&warn.experimental.func;
|
||||
|
|
|
@ -1,33 +1,31 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.8 $ -->
|
||||
<!-- EN-Revision: 1.7 Maintainer: baoengb Status: ready -->
|
||||
<!-- $Revision: 1.9 $ -->
|
||||
<refentry id="function.mysqli-dump-debug-info">
|
||||
<refnamediv>
|
||||
<refname>mysqli_dump_debug_info</refname>
|
||||
<refname>mysqli->dump_debug_info</refname>
|
||||
<refpurpose>Vacía información de rastreo de errores en el log</refpurpose>
|
||||
<refpurpose>Dump debugging information into the log</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
<title>Descripción</title>
|
||||
<title>Description</title>
|
||||
<methodsynopsis>
|
||||
<type>bool</type><methodname>mysqli_dump_debug_info</methodname>
|
||||
<methodparam><type>objeto</type><parameter>identificador_de_enlace</parameter></methodparam>
|
||||
<methodparam><type>object</type><parameter>link</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
Esta función está diseñada para ser ejecutada por un
|
||||
usaurio con privilegios de SUPER usuario y es usada para vaciar la información
|
||||
de rastreo de errores en el log del servidor MySQL relacionado a la conexión
|
||||
específicada por el parámetro <parameter>identificador_de_enlace</parameter>.
|
||||
This function is designed to be executed by an user with the SUPER privlege and
|
||||
is used to dump debugging information into the log for the MySQL Server relating
|
||||
to the connection specified by the <parameter>link</parameter> parameter.
|
||||
</para>
|
||||
</refsect1>
|
||||
<refsect1>
|
||||
<title>Valores regresados</title>
|
||||
<title>Return values</title>
|
||||
<para>
|
||||
&return.success;
|
||||
</para>
|
||||
</refsect1>
|
||||
<refsect1>
|
||||
<title>Vea también</title>
|
||||
<title>See also</title>
|
||||
<para>
|
||||
<function>mysqli_debug</function>.
|
||||
</para>
|
||||
|
|
|
@ -1,13 +1,12 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.3 $ -->
|
||||
<!-- EN-Revision: 1.2 Maintainer: baoengb Status: ready -->
|
||||
<!-- $Revision: 1.4 $ -->
|
||||
<refentry id="function.mysqli-embedded-connect">
|
||||
<refnamediv>
|
||||
<refname>mysqli_embedded_connect</refname>
|
||||
<refpurpose>Abre una conexió a un servidor MySQL embebido.</refpurpose>
|
||||
<refpurpose>Open a connection to an embedded mysql server.</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
<title>Descripción</title>
|
||||
<title>Description</title>
|
||||
<methodsynopsis>
|
||||
<type>object</type><methodname>mysqli_embedded_connect</methodname>
|
||||
<methodparam><type>void</type><parameter></parameter></methodparam>
|
||||
|
|
|
@ -1,16 +1,15 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.7 $ -->
|
||||
<!-- EN-Revision: 1.6 Maintainer: baoengb Status: ready -->
|
||||
<!-- $Revision: 1.8 $ -->
|
||||
<refentry id="function.mysqli-enable-reads-from-master">
|
||||
<refnamediv>
|
||||
<refname>mysqli_enable_reads_from_master</refname>
|
||||
<refpurpose></refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
<title>Descripción</title>
|
||||
<title>Description</title>
|
||||
<methodsynopsis>
|
||||
<type>void</type><methodname>mysqli_enable_reads_from_master</methodname>
|
||||
<methodparam><type>objeto</type><parameter>identificador_de_enlace</parameter></methodparam>
|
||||
<methodparam><type>object</type><parameter>link</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
|
||||
&warn.experimental.func;
|
||||
|
|
|
@ -1,16 +1,15 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.7 $ -->
|
||||
<!-- EN-Revision: 1.6 Maintainer: baoengb Status: ready -->
|
||||
<!-- $Revision: 1.8 $ -->
|
||||
<refentry id="function.mysqli-enable-rpl-parse">
|
||||
<refnamediv>
|
||||
<refname>mysqli_enable_rpl_parse</refname>
|
||||
<refpurpose></refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
<title>Descripción</title>
|
||||
<title>Description</title>
|
||||
<methodsynopsis>
|
||||
<type>void</type><methodname>mysqli_enable_rpl_parse</methodname>
|
||||
<methodparam><type>objeto</type><parameter>identificador_de_enlace</parameter></methodparam>
|
||||
<methodparam><type>object</type><parameter>link</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
|
||||
&warn.experimental.func;
|
||||
|
|
|
@ -1,53 +1,46 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.9 $ -->
|
||||
<!-- EN-Revision: 1.8 Maintainer: baoengb Status: ready -->
|
||||
<!-- $Revision: 1.10 $ -->
|
||||
<refentry id="function.mysqli-errno">
|
||||
<refnamediv>
|
||||
<refname>mysqli_errno</refname>
|
||||
<refname>mysql->errno</refname>
|
||||
<refpurpose>Regresa el código de error para la función más
|
||||
recientemente llamada</refpurpose>
|
||||
<refpurpose>Returns the error code for the most recent function call</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
<title>Descripción</title>
|
||||
<para>Estilo por procedimientos:</para>
|
||||
<title>Description</title>
|
||||
<para>Procedural style:</para>
|
||||
<methodsynopsis>
|
||||
<type>int</type><methodname>mysqli_errno</methodname>
|
||||
<methodparam><type>objeto</type><parameter>identificador_de_enlace</parameter></methodparam>
|
||||
<methodparam><type>object</type><parameter>link</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>Estilo orientado a objetos (propiedad):</para>
|
||||
<para>Object oriented style (property):</para>
|
||||
<classsynopsis>
|
||||
<ooclass><classname>mysqli</classname></ooclass>
|
||||
<fieldsynopsis><type>int</type><varname>errno</varname></fieldsynopsis>
|
||||
</classsynopsis>
|
||||
<para>
|
||||
La función <function>mysqli_errno</function> regresará el último
|
||||
código de error para la función de MySQLi más recientemente
|
||||
llamada, que pueda ser exitosa o fallar con respecto al identificador de enlace a
|
||||
la base de datos definido por el parámetro <parameter>identificador_de_enlace</parameter>.
|
||||
Si no han ocurrido errores, está función regresará cero.
|
||||
The <function>mysqli_errno</function> function will return the last error code for
|
||||
the most recent MySQLi function call that can succeed or fail with respect to the
|
||||
database link defined by the <parameter>link</parameter> parameter. If no errors
|
||||
have occured, this function will return zero.
|
||||
</para>
|
||||
<note>
|
||||
<para>
|
||||
Los números de error del cliente, están listados en el archivo
|
||||
de MySQL <filename>errmsg.h</filename>.
|
||||
Los números de error del servidor, están listados en el archivo
|
||||
de MySQL <filename>mysqld_error.h</filename>.
|
||||
En la distribución de las fuentes de MySQL, tu puedes encontrar una
|
||||
lista completa de los mensajes de error y de los números de error
|
||||
en el documento <filename>Docs/mysqld_error.txt</filename>.
|
||||
Client error message numbers are listed in the MySQL <filename>errmsg.h</filename> header file,
|
||||
server error message numbers are listed in <filename>mysqld_error.h</filename>.
|
||||
In the MySQL source distribution you can find a complete list of error messages and error numbers
|
||||
in the file <filename>Docs/mysqld_error.txt</filename>.
|
||||
</para>
|
||||
</note>
|
||||
</refsect1>
|
||||
<refsect1>
|
||||
<title>Valores regresados</title>
|
||||
<title>Return values</title>
|
||||
<para>
|
||||
Un valor de código de error para la última llamada si falló.
|
||||
Cero significa que no han ocurrido errores.
|
||||
An error code value for the last call, if it failed. zero means no error occurred.
|
||||
</para>
|
||||
</refsect1>
|
||||
<refsect1>
|
||||
<title>Vea también</title>
|
||||
<title>See also</title>
|
||||
<para>
|
||||
<function>mysqli_connect_errno</function>,
|
||||
<function>mysqli_connect_error</function>,
|
||||
|
@ -56,9 +49,9 @@
|
|||
</para>
|
||||
</refsect1>
|
||||
<refsect1>
|
||||
<title>Ejemplos</title>
|
||||
<title>Example</title>
|
||||
<example>
|
||||
<title>Estilo orientado a objetos</title>
|
||||
<title>Object oriented style</title>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
|
@ -81,7 +74,7 @@ $mysqli->close();
|
|||
</programlisting>
|
||||
</example>
|
||||
<example>
|
||||
<title>Estilo por procedimientos</title>
|
||||
<title>Procedural style</title>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
|
@ -104,7 +97,7 @@ mysqli_close($link);
|
|||
</programlisting>
|
||||
</example>
|
||||
<para>
|
||||
Los ejemplos anteriores producirán la siguiente salida:
|
||||
The above examples would produce the following output:
|
||||
</para>
|
||||
<screen>
|
||||
<![CDATA[
|
||||
|
|
|
@ -1,41 +1,39 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.11 $ -->
|
||||
<!-- EN-Revision: 1.10 Maintainer: baoengb Status: ready -->
|
||||
<!-- $Revision: 1.12 $ -->
|
||||
<refentry id="function.mysqli-error">
|
||||
<refnamediv>
|
||||
<refname>mysqli_error</refname>
|
||||
<refpurpose>Regresa una cadena con la descripció del último error</refpurpose>
|
||||
<refpurpose>Returns a string description of the last error</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
<title>Descripción</title>
|
||||
<para>Estilo por procedimientos:</para>
|
||||
<title>Description</title>
|
||||
<para>Procedural style:</para>
|
||||
<methodsynopsis>
|
||||
<type>cadena</type><methodname>mysqli_error</methodname>
|
||||
<methodparam><type>objeto</type><parameter>identificador_de_enlace</parameter></methodparam>
|
||||
<type>string</type><methodname>mysqli_error</methodname>
|
||||
<methodparam><type>object</type><parameter>link</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>Estilo orientado a objetos (propiedad)</para>
|
||||
<para>Object oriented style (property)</para>
|
||||
<classsynopsis>
|
||||
<ooclass><classname>mysqli</classname></ooclass>
|
||||
<fieldsynopsis><type>cadena</type><varname>error</varname></fieldsynopsis>
|
||||
<fieldsynopsis><type>string</type><varname>error</varname></fieldsynopsis>
|
||||
</classsynopsis>
|
||||
<para>
|
||||
La funció <function>mysqli_error</function> es identica a la correspondiente
|
||||
<function>mysqli_errno</function> en todos los sentidos, excepto en que en
|
||||
lugar de regresar un valor numérico, la función <function>mysqli_error</function>
|
||||
regresará un mensaje de error, representando el último error
|
||||
ocurrido para la conexió de base de datos <parameter>identificador_de_enlace</parameter>.
|
||||
Si no han ocurrido errores, está función regresará una cadena vacía.
|
||||
The <function>mysqli_error</function> function is identical to the corresponding
|
||||
<function>mysqli_errno</function> function in every way, except instead of returning
|
||||
an integer error code the <function>mysqli_error</function> function will return
|
||||
a string representation of the last error to occur for the database connection
|
||||
represented by the <parameter>link</parameter> parameter. If no error has occured,
|
||||
this function will return an empty string.
|
||||
</para>
|
||||
</refsect1>
|
||||
<refsect1>
|
||||
<title>Valores regresados</title>
|
||||
<title>Return values</title>
|
||||
<para>
|
||||
Una cadena que describe el error. Una cadena vacía si no han ocurrido
|
||||
errores.
|
||||
A string that describes the error. An empty string if no error occurred.
|
||||
</para>
|
||||
</refsect1>
|
||||
<refsect1>
|
||||
<title>Vea también</title>
|
||||
<title>See also</title>
|
||||
<para>
|
||||
<function>mysqli_connect_errno</function>,
|
||||
<function>mysqli_connect_error</function>,
|
||||
|
@ -44,9 +42,9 @@
|
|||
</para>
|
||||
</refsect1>
|
||||
<refsect1>
|
||||
<title>Ejemplos</title>
|
||||
<title>Example</title>
|
||||
<example>
|
||||
<title>Estilo orientado a objetos</title>
|
||||
<title>Object oriented style</title>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
|
@ -69,7 +67,7 @@ $mysqli->close();
|
|||
</programlisting>
|
||||
</example>
|
||||
<example>
|
||||
<title>Estilo por procedimientos</title>
|
||||
<title>Procedural style</title>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
|
@ -92,7 +90,7 @@ mysqli_close($link);
|
|||
</programlisting>
|
||||
</example>
|
||||
<para>
|
||||
Los ejemplos anteriores producirán la siguiente salida:
|
||||
The above examples would produce the following output:
|
||||
</para>
|
||||
<screen>
|
||||
<![CDATA[
|
||||
|
|
|
@ -1,15 +1,14 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.2 $ -->
|
||||
<!-- EN-Revision: 1.1 Maintainer: baoengb Status: ready -->
|
||||
<!-- $Revision: 1.3 $ -->
|
||||
<refentry id="function.mysqli-escape-string">
|
||||
<refnamediv>
|
||||
<refname>mysqli-escape-string</refname>
|
||||
<refpurpose>Alias de <function>mysqli_real_escape_string</function></refpurpose>
|
||||
<refpurpose>Alias of <function>mysqli_real_escape_string</function></refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
<title>Descripción</title>
|
||||
<title>Description</title>
|
||||
<para>
|
||||
Esta función es un alias de <function>mysqli_real_escape_string</function>.
|
||||
This function is an alias of <function>mysqli_real_escape_string</function>.
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
|
|
@ -1,26 +1,25 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.12 $ -->
|
||||
<!-- EN-Revision: 1.11 Maintainer: baoengb Status: ready -->
|
||||
<!-- $Revision: 1.13 $ -->
|
||||
<refentry id="function.mysqli-execute">
|
||||
<refnamediv>
|
||||
<refname>mysqli_execute</refname>
|
||||
<refpurpose>Alias de <function>mysqli_stmt_execute</function></refpurpose>
|
||||
<refpurpose>Alias for <function>mysqli_stmt_execute</function></refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
<title>Descripción</title>
|
||||
<title>Description</title>
|
||||
<para>
|
||||
Esta función es un alias de <function>mysqli_stmt_execute</function>.
|
||||
Para una descipció más detallada vea la descripción de
|
||||
This function is an alias of <function>mysqli_stmt_execute</function>.
|
||||
For a detailled descripton see description of
|
||||
<function>mysqli_stmt_execute</function>.
|
||||
</para>
|
||||
<note>
|
||||
<para>
|
||||
<function>mysqli_execute</function> es obsoleta y será removida.
|
||||
<function>mysqli_execute</function> is deprecated and will be removed.
|
||||
</para>
|
||||
</note>
|
||||
</refsect1>
|
||||
<refsect1>
|
||||
<title>Vea también</title>
|
||||
<title>See also</title>
|
||||
<para>
|
||||
<function>mysqli_stmt_execute</function>
|
||||
</para>
|
||||
|
|
|
@ -1,72 +1,65 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.13 $ -->
|
||||
<!-- EN-Revision: 1.12 Maintainer: baoengb Status: ready -->
|
||||
<!-- $Revision: 1.14 $ -->
|
||||
<refentry id="function.mysqli-fetch-array">
|
||||
<refnamediv>
|
||||
<refname>mysqli_fetch_array</refname>
|
||||
<refname>result->fetch_array</refname>
|
||||
<refpurpose>Obtiene una fila como una matriz asociativa, una matriz numérica o ambos.</refpurpose>
|
||||
<refpurpose>Fetch a result row as an associative, a numeric array, or both.</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
<title>Descripción</title>
|
||||
<para>Estilo por procedimientos:</para>
|
||||
<title>Description</title>
|
||||
<para>Procedural style:</para>
|
||||
<methodsynopsis>
|
||||
<type>mixto</type><methodname>mysqli_fetch_array</methodname>
|
||||
<methodparam><type>objeto</type><parameter>resultado</parameter></methodparam>
|
||||
<methodparam choice='opt'><type>int</type><parameter>tipo_de_resultado</parameter></methodparam>
|
||||
<type>mixed</type><methodname>mysqli_fetch_array</methodname>
|
||||
<methodparam><type>object</type><parameter>result</parameter></methodparam>
|
||||
<methodparam choice='opt'><type>int</type><parameter>resulttype</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>Estilo orientado a objetos (método):</para>
|
||||
<para>Object oriend style (method):</para>
|
||||
<classsynopsis>
|
||||
<ooclass><classname>resultado</classname></ooclass>
|
||||
<ooclass><classname>result</classname></ooclass>
|
||||
<methodsynopsis>
|
||||
<type>mixto</type>
|
||||
<type>mixed</type>
|
||||
<methodname>fetch_array</methodname>
|
||||
<methodparam choice='opt'><type>int</type><parameter>tipo_de_resultado</parameter></methodparam>
|
||||
<methodparam choice='opt'><type>int</type><parameter>resulttype</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
</classsynopsis>
|
||||
<para>
|
||||
Regresa una matrix que corresponde a las filas obtenidas o &null; si no hay
|
||||
más filas para el resultado, representado por el parámetro
|
||||
<parameter>resultado</parameter>.
|
||||
Returns an array that corresponds to the fetched row or &null; if there are no more rows for the
|
||||
resultset represented by the <parameter>result</parameter> parameter.
|
||||
</para>
|
||||
<para>
|
||||
<function>mysqli_fetch_array</function> es una versión mejorada de la función
|
||||
<function>mysqli_fetch_row</function>. Ademá de almacenar los datos en
|
||||
índices numéricos de la matriz resultante, la función
|
||||
<function>mysql_fetch_array</function> también puede almacenar los datos en
|
||||
índices asociativos, usando los nombre de los campos de el resultado como llaves.
|
||||
<function>mysqli_fetch_array</function> is an extended version of the
|
||||
<function>mysqli_fetch_row</function> function. In addition to storing the data in the
|
||||
numeric indices of the result array, the <function>mysqli_fetch_array</function> function can
|
||||
also store the data in associative indices, using the field names of the result set as keys.
|
||||
</para>
|
||||
&database.field-case;
|
||||
<para>
|
||||
Si dos o más columnas de el resultado tienen el mismo nombre, la última
|
||||
columna tomara precedencia y sobre escribirá lo primero. Para acceder a
|
||||
varias columnas con el mismo nombre, la forma de índice numérica
|
||||
debe ser usada.
|
||||
If two or more columns of the result have the same field names, the last column will take
|
||||
precedence and overwrite the earlier data. In order to access multiple columns with the same
|
||||
name, the numerically indexed version of the row must be used.
|
||||
</para>
|
||||
<para>
|
||||
El parámetro opcional <parameter>tipo_de_resultado</parameter> es una
|
||||
constante que indica qué tipo de matriz debe ser producido para la fila
|
||||
de datos actual. Los posibles valires para este parámetro son las constantes
|
||||
MYSQLI_ASSOC, MYSQLI_NUM, o MYSQLI_BOTH. Por defecto la función
|
||||
<function>mysqli_fetch_array</function> asumirá el valor de MYSQLI_BOTH.
|
||||
The optional second argument <parameter>resulttype</parameter> is a constant indicating what
|
||||
type of array should be produced from the current row data. The possible values for this parameter
|
||||
are the constants MYSQLI_ASSOC, MYSQLI_NUM, or MYSQLI_BOTH. By default the
|
||||
<function>mysqli_fetch_array</function> function will assume MYSQLI_BOTH for this parameter.
|
||||
</para>
|
||||
<para>
|
||||
Al usar la constante MYSQLI_ASSOC, esta función se comportará
|
||||
identica a la función <function>mysqli_fetch_assoc</function>, mientras
|
||||
que con MYSQLI_NUM se comportará identica a la función
|
||||
<function>mysql_fetch_row</function>. La opción final MYSQLI_BOTH
|
||||
creará una matriz con los atributos de ambos.
|
||||
By using the MYSQLI_ASSOC constant this function will behave identically to the
|
||||
<function>mysqli_fetch_assoc</function>, while MYSQLI_NUM will behave identically to the
|
||||
<function>mysqli_fetch_row</function> function. The final option MYSQLI_BOTH will create a single
|
||||
array with the attributes of both.
|
||||
</para>
|
||||
</refsect1>
|
||||
<refsect1>
|
||||
<title>Valores regresados</title>
|
||||
<title>Return values</title>
|
||||
<para>
|
||||
Regresa una matriz que corresponde a las filas obtenidas o &null; si no hay
|
||||
más filas en el resultado.
|
||||
Returns an array that corresponds to the fetched row or &null; if there are no more rows in resultset.
|
||||
</para>
|
||||
</refsect1>
|
||||
<refsect1>
|
||||
<title>Vea también</title>
|
||||
<title>See also</title>
|
||||
<para>
|
||||
<function>mysqli_fetch_assoc</function>,
|
||||
<function>mysqli_fetch_row</function>,
|
||||
|
@ -74,9 +67,9 @@
|
|||
</para>
|
||||
</refsect1>
|
||||
<refsect1>
|
||||
<title>Ejemplos</title>
|
||||
<title>Example</title>
|
||||
<example>
|
||||
<title>Estilo orientado a objetos</title>
|
||||
<title>Object oriented style</title>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
|
@ -113,7 +106,7 @@ $mysqli->close();
|
|||
</programlisting>
|
||||
</example>
|
||||
<example>
|
||||
<title>Estilo por procedimientos</title>
|
||||
<title>Procedural style</title>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
|
@ -150,7 +143,7 @@ mysqli_close($link);
|
|||
</programlisting>
|
||||
</example>
|
||||
<para>
|
||||
Los ejemplos anteriores producián la siguiente salida:
|
||||
The above examples would produce the following output:
|
||||
</para>
|
||||
<screen>
|
||||
<![CDATA[
|
||||
|
|
|
@ -1,55 +1,54 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.11 $ -->
|
||||
<!-- EN-Revision: 1.10 Maintainer: baoengb Status: ready -->
|
||||
<!-- $Revision: 1.12 $ -->
|
||||
<refentry id="function.mysqli-fetch-assoc">
|
||||
<refnamediv>
|
||||
<refname>mysqli_fetch_assoc</refname>
|
||||
<refname>mysqli->fetch_assoc</refname>
|
||||
<refpurpose>Obtiene una fila del resultado como una matriz asociativa</refpurpose>
|
||||
<refpurpose>Fetch a result row as an associative array</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
<title>Descripción</title>
|
||||
<para>Estilo por procedimientos:</para>
|
||||
<title>Description</title>
|
||||
<para>Procedural style:</para>
|
||||
<methodsynopsis>
|
||||
<type>matriz</type><methodname>mysqli_fetch_assoc</methodname>
|
||||
<methodparam><type>objeto</type><parameter>resultado</parameter></methodparam>
|
||||
<type>array</type><methodname>mysqli_fetch_assoc</methodname>
|
||||
<methodparam><type>object</type><parameter>result</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>Estilo orientado a objetos (método):</para>
|
||||
<para>Object oriend style (method):</para>
|
||||
<classsynopsis>
|
||||
<ooclass><classname>resultado</classname></ooclass>
|
||||
<ooclass><classname>result</classname></ooclass>
|
||||
<methodsynopsis>
|
||||
<type>matriz</type>
|
||||
<type>array</type>
|
||||
<methodname>fetch_assoc</methodname>
|
||||
<methodparam><type>void</type><parameter></parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
</classsynopsis>
|
||||
<para>
|
||||
Regresa una matriz asociativa que corresponde a las filas obtenidas o &null;
|
||||
si no hay mas filas.
|
||||
Returns an associative array that corresponds to the fetched row or &null; if there are
|
||||
no more rows.
|
||||
</para>
|
||||
<para>
|
||||
La función <function>mysqli_fetch_assoc</function> es usada para regresar
|
||||
una representación asociativa de la siguiente fila en el resultado,
|
||||
representado por el parámetro <parameter>resultado</parameter>, donde
|
||||
cada llave en la matriz representa el nombre de las columnas en el resultado.
|
||||
The <function>mysqli_fetch_assoc</function> function is used to return an associative array
|
||||
representing the next row in the result set for the result represented by the
|
||||
<parameter>result</parameter> parameter, where each key in the array represents the name
|
||||
of one of the result set's columns.
|
||||
</para>
|
||||
<para>
|
||||
Si dos o más columnas de el resultado tienen el mismo nombre, la última
|
||||
columna tomara precedencia y sobre escribirá lo primero. Para acceder a
|
||||
varias columnas con el mismo nombre, la forma de índice numérica
|
||||
debe ser usada.
|
||||
If two or more columns of the result have the same field names,
|
||||
the last column will take precedence. To access the other
|
||||
column(s) of the same name, you either need to access the
|
||||
result with numeric indices by using
|
||||
<function>mysqli_fetch_row</function> or add alias names.
|
||||
</para>
|
||||
&database.field-case;
|
||||
</refsect1>
|
||||
<refsect1>
|
||||
<title>Valores regresados</title>
|
||||
<title>Return values</title>
|
||||
<para>
|
||||
Regresa una matriz que corresponde a las filas obtenidas o &null; si no hay
|
||||
más filas en el resultado.
|
||||
Returns an array that corresponds to the fetched row or &null; if there are no more rows in resultset.
|
||||
</para>
|
||||
</refsect1>
|
||||
<refsect1>
|
||||
<title>Vea también</title>
|
||||
<title>See also</title>
|
||||
<para>
|
||||
<function>mysqli_fetch_array</function>,
|
||||
<function>mysqli_fetch_row</function>,
|
||||
|
@ -57,9 +56,9 @@
|
|||
</para>
|
||||
</refsect1>
|
||||
<refsect1>
|
||||
<title>Ejemplos</title>
|
||||
<title>Example</title>
|
||||
<example>
|
||||
<title>Estilo orientado a objetos</title>
|
||||
<title>Object oriented style</title>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
|
@ -91,7 +90,7 @@ $mysqli->close();
|
|||
</programlisting>
|
||||
</example>
|
||||
<example>
|
||||
<title>Estilo por procedimientos</title>
|
||||
<title>Procedural style</title>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
|
@ -123,7 +122,7 @@ mysqli_close($link);
|
|||
</programlisting>
|
||||
</example>
|
||||
<para>
|
||||
Los ejemplos anteriores producirán la siguiente salida:
|
||||
The above examples would produce the following output:
|
||||
</para>
|
||||
<screen>
|
||||
<![CDATA[
|
||||
|
|
|
@ -1,91 +1,88 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.7 $ -->
|
||||
<!-- EN-Revision: 1.6 Maintainer: baoengb Status: ready -->
|
||||
<!-- $Revision: 1.8 $ -->
|
||||
<refentry id="function.mysqli-fetch-field-direct">
|
||||
<refnamediv>
|
||||
<refname>mysqli_fetch_field_direct</refname>
|
||||
<refname>result->fetch_field_direct</refname>
|
||||
<refpurpose>
|
||||
Obtiene los metadatos de un campo
|
||||
Fetch meta-data for a single field
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
<title>Descripción</title>
|
||||
<para>Estilo por procedimientos:</para>
|
||||
<title>Description</title>
|
||||
<para>Procedural style:</para>
|
||||
<methodsynopsis>
|
||||
<type>mixto</type><methodname>mysqli_fetch_field_direct</methodname>
|
||||
<methodparam><type>objeto</type><parameter>resultado</parameter></methodparam>
|
||||
<methodparam><type>int</type><parameter>indice_de_campo</parameter></methodparam>
|
||||
<type>mixed</type><methodname>mysqli_fetch_field_direct</methodname>
|
||||
<methodparam><type>object</type><parameter>result</parameter></methodparam>
|
||||
<methodparam><type>int</type><parameter>fieldnr</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>Estilo orientado a objetos (método):</para>
|
||||
<para>Object oriented style (method):</para>
|
||||
<classsynopsis>
|
||||
<ooclass><classname>resultado</classname></ooclass>
|
||||
<ooclass><classname>result</classname></ooclass>
|
||||
<methodsynopsis>
|
||||
<type>mixto</type>
|
||||
<type>mixed</type>
|
||||
<methodname>fetch_field_direct</methodname>
|
||||
<methodparam><type>int</type><parameter>indice_de_campo</parameter></methodparam>
|
||||
<methodparam><type>int</type><parameter>fieldnr</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
</classsynopsis>
|
||||
<para>
|
||||
La función <function>mysqli_fetch_field_direct</function> regresa un
|
||||
objeto el cuál contiene información de la definición del
|
||||
campo del resultado específicado. El valor de indice_de_campo debe estar
|
||||
en el rango de <literal>0</literal> a <literal>número de campos -1</literal>.
|
||||
<function>mysqli_fetch_field_direct</function> returns an object which contains
|
||||
field definition informations from specified resultset. The value of fieldnr must be in the
|
||||
range from <literal>0</literal> to <literal>number of fields - 1</literal>.
|
||||
</para>
|
||||
</refsect1>
|
||||
<refsect1>
|
||||
<title>Valores regresados</title>
|
||||
<title>Return values</title>
|
||||
<para>
|
||||
Regresa un objeto el cual contiene información de la definición del
|
||||
campo o &false; si no hay información para el <literal>indice_de_campo</literal>
|
||||
específicado.
|
||||
Returns an object which contains field definition informations or &false; if no field information
|
||||
for specified <literal>fieldnr</literal> is available.
|
||||
</para>
|
||||
<para>
|
||||
<table>
|
||||
<title>Atributos del objeto</title>
|
||||
<title>Object attributes</title>
|
||||
<tgroup cols='2'>
|
||||
<thead>
|
||||
<row>
|
||||
<entry>Atributo</entry>
|
||||
<entry>Descripción</entry>
|
||||
<entry>Attribute</entry>
|
||||
<entry>Description</entry>
|
||||
</row>
|
||||
</thead>
|
||||
<tbody>
|
||||
<row>
|
||||
<entry>name</entry>
|
||||
<entry>Nombre de la columna</entry>
|
||||
<entry>The name of the column</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>orgname</entry>
|
||||
<entry>Nombre original de la columna si se dió un alias</entry>
|
||||
<entry>Original column name if an alias was specified</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>table</entry>
|
||||
<entry>Nombre de la tabla a la que pertenece el campo</entry>
|
||||
<entry>The name of the table this field belongs to (if not calculated)</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>orgtable</entry>
|
||||
<entry>Nombre original de la tabla si se dió un alias</entry>
|
||||
<entry>Original table name if an alias was specified</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>def</entry>
|
||||
<entry>El valor por defecto para este campo, representado como una cadena</entry>
|
||||
<entry>The default value for this field, represented as a string</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>max_length</entry>
|
||||
<entry>La amplitud máxima de campo de el campo para el resultado</entry>
|
||||
<entry>The maximum width of the field for the result set.</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>flags</entry>
|
||||
<entry>Un entero que representa los bit bandera para el campo</entry>
|
||||
<entry>An integer representing the bit-flags for the field.</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>type</entry>
|
||||
<entry>Tipo de dato utilizado para este campo</entry>
|
||||
<entry>The data type used for this field</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>decimals</entry>
|
||||
<entry>Número de decimales usadas (para campos entero)</entry>
|
||||
<entry>The number of decimals used (for integer fields)</entry>
|
||||
</row>
|
||||
</tbody>
|
||||
</tgroup>
|
||||
|
@ -93,7 +90,7 @@
|
|||
</para>
|
||||
</refsect1>
|
||||
<refsect1>
|
||||
<title>Vea también</title>
|
||||
<title>See also</title>
|
||||
<para>
|
||||
<function>mysqli_num_fields</function>
|
||||
<function>mysqli_fetch_field</function>
|
||||
|
@ -101,9 +98,9 @@
|
|||
</para>
|
||||
</refsect1>
|
||||
<refsect1>
|
||||
<title>Ejemplos</title>
|
||||
<title>Example</title>
|
||||
<example>
|
||||
<title>Estilo orientado a objetos</title>
|
||||
<title>Object oriented style</title>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
|
@ -138,7 +135,7 @@ $mysqli->close();
|
|||
</programlisting>
|
||||
</example>
|
||||
<example>
|
||||
<title>Estilo por procedimientos</title>
|
||||
<title>Procedural style</title>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
|
@ -173,7 +170,7 @@ mysqli_close($link);
|
|||
</programlisting>
|
||||
</example>
|
||||
<para>
|
||||
Los ejemplos anteriores producirán la siguiente salida:
|
||||
The above examples would produce the following output:
|
||||
</para>
|
||||
<screen>
|
||||
<![CDATA[
|
||||
|
|
|
@ -1,88 +1,86 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.11 $ -->
|
||||
<!-- EN-Revision: 1.10 Maintainer: baoengb Status: ready -->
|
||||
<!-- $Revision: 1.12 $ -->
|
||||
<refentry id="function.mysqli-fetch-field">
|
||||
<refnamediv>
|
||||
<refname>mysqli_fetch_field</refname>
|
||||
<refname>result->fetch_field</refname>
|
||||
<refpurpose>Regresa metadatos de el campo en el resultado</refpurpose>
|
||||
<refpurpose>Returns the next field in the result set</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
<title>Descripción</title>
|
||||
<para>Estilo por procedimientos:</para>
|
||||
<title>Description</title>
|
||||
<para>Procedural style:</para>
|
||||
<methodsynopsis>
|
||||
<type>mixto</type><methodname>mysqli_fetch_field</methodname>
|
||||
<methodparam><type>objeto</type><parameter>resultado</parameter></methodparam>
|
||||
<type>mixed</type><methodname>mysqli_fetch_field</methodname>
|
||||
<methodparam><type>object</type><parameter>result</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>Estilo orientado a objetos (método):</para>
|
||||
<para>Object oriented style (method):</para>
|
||||
<classsynopsis>
|
||||
<ooclass><classname>resultado</classname></ooclass>
|
||||
<ooclass><classname>result</classname></ooclass>
|
||||
<methodsynopsis>
|
||||
<type>mixto</type>
|
||||
<methodname>fetch_field</methodname>
|
||||
<void/>
|
||||
<type>mixed</type><methodname>fetch_field</methodname>
|
||||
<void/>
|
||||
</methodsynopsis>
|
||||
</classsynopsis>
|
||||
<para>
|
||||
La función <function>mysqli_fetch_field</function> regresa un objeto
|
||||
con información de definición de un campo de un resultado.
|
||||
Ejecute esta función repetidamente para obtener la información
|
||||
de todas las columnas en un resultado. <function>mysqli_fetch_field</function>
|
||||
regresa &false; cuando no hay más columnas en el resultado.
|
||||
The <function>mysqli_fetch_field</function> returns the definition of one column
|
||||
of a result set as an object. Call this function repeatedly to retrieve
|
||||
information about all columns in the result set.
|
||||
<function>mysqli_fetch_field</function> returns &false; when no more fields
|
||||
are left.
|
||||
</para>
|
||||
</refsect1>
|
||||
<refsect1>
|
||||
<title>Valores regresados</title>
|
||||
<title>Return values</title>
|
||||
<para>
|
||||
Regresa un objeto el cual contiene la información de la definición
|
||||
del campo o &false; si no hay información disponible.
|
||||
Returns an object which contains field definition informations or &false; if no field information
|
||||
is available.
|
||||
</para>
|
||||
<para>
|
||||
<table>
|
||||
<title>Atributos del objeto</title>
|
||||
<title>Object attributes</title>
|
||||
<tgroup cols='2'>
|
||||
<thead>
|
||||
<row>
|
||||
<entry>Atributo</entry>
|
||||
<entry>Descripción</entry>
|
||||
<entry>Attribute</entry>
|
||||
<entry>Description</entry>
|
||||
</row>
|
||||
</thead>
|
||||
<tbody>
|
||||
<row>
|
||||
<entry>name</entry>
|
||||
<entry>El nombre de la columna</entry>
|
||||
<entry>The name of the column</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>orgname</entry>
|
||||
<entry>Nombre original de la columna, si se específico un alias</entry>
|
||||
<entry>Original column name if an alias was specified</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>table</entry>
|
||||
<entry>El nombre de la tablaa la cuál pertenece</entry>
|
||||
<entry>The name of the table this field belongs to (if not calculated)</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>orgtable</entry>
|
||||
<entry>Nombre original de la tabla si se específico un alias</entry>
|
||||
<entry>Original table name if an alias was specified</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>def</entry>
|
||||
<entry>El valor por defecto de este campo, representado con una cadena</entry>
|
||||
<entry>The default value for this field, represented as a string</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>max_length</entry>
|
||||
<entry>La máma amplitud del campo para el resultado</entry>
|
||||
<entry>The maximum width of the field for the result set.</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>flags</entry>
|
||||
<entry>Un entero representando los bit de bandera para el campo</entry>
|
||||
<entry>An integer representing the bit-flags for the field.</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>type</entry>
|
||||
<entry>El tipo de dato usado para este campo</entry>
|
||||
<entry>The data type used for this field</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>decimals</entry>
|
||||
<entry>El número de decimales utilizadas (para campos numéricos)</entry>
|
||||
<entry>The number of decimals used (for integer fields)</entry>
|
||||
</row>
|
||||
</tbody>
|
||||
</tgroup>
|
||||
|
@ -90,7 +88,7 @@
|
|||
</para>
|
||||
</refsect1>
|
||||
<refsect1>
|
||||
<title>Vea también</title>
|
||||
<title>See also</title>
|
||||
<para>
|
||||
<function>mysqli_num_fields</function>
|
||||
<function>mysqli_fetch_field_direct</function>
|
||||
|
@ -99,9 +97,9 @@
|
|||
</para>
|
||||
</refsect1>
|
||||
<refsect1>
|
||||
<title>Ejemplos</title>
|
||||
<title>Example</title>
|
||||
<example>
|
||||
<title>Estilo orientado a objetos</title>
|
||||
<title>Object oriented style</title>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
|
@ -136,7 +134,7 @@ $mysqli->close();
|
|||
</programlisting>
|
||||
</example>
|
||||
<example>
|
||||
<title>Estilo por procedimientos</title>
|
||||
<title>Procedural style</title>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
|
@ -171,7 +169,7 @@ mysqli_close($link);
|
|||
</programlisting>
|
||||
</example>
|
||||
<para>
|
||||
Los ejemplos anteriores producirán la siguiente salida:
|
||||
The above examples would produce the following output:
|
||||
</para>
|
||||
<screen>
|
||||
<![CDATA[
|
||||
|
|
|
@ -1,47 +1,95 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.11 $ -->
|
||||
<!-- EN-Revision: 1.10 Maintainer: baoengb Status: ready -->
|
||||
<!-- $Revision: 1.12 $ -->
|
||||
<refentry id="function.mysqli-fetch-fields">
|
||||
<refnamediv>
|
||||
<refname>mysqli_fetch_fields</refname>
|
||||
<refname>result->fetch_fields</refname>
|
||||
<refpurpose>Regresa una matriz de objetos representando los campos en un
|
||||
resultado</refpurpose>
|
||||
<refpurpose>Returns an array of objects representing the fields in a result set</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
<title>Descripción</title>
|
||||
<para>Estilo por procedimientos:</para>
|
||||
<title>Description</title>
|
||||
<para>Procedural Style:</para>
|
||||
<methodsynopsis>
|
||||
<type>mixto</type><methodname>mysqli_fetch_fields</methodname>
|
||||
<methodparam><type>objeto</type><parameter>resultado</parameter></methodparam>
|
||||
<type>mixed</type><methodname>mysqli_fetch_fields</methodname>
|
||||
<methodparam><type>object</type><parameter>result</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>Estilo orientado a objetos (método):</para>
|
||||
<para>Object oriented style (method):</para>
|
||||
<classsynopsis>
|
||||
<ooclass><classname>resultado</classname></ooclass>
|
||||
<ooclass><classname>result</classname></ooclass>
|
||||
<methodsynopsis>
|
||||
<type>mixto</type>
|
||||
<type>mixed</type>
|
||||
<methodname>fetch_fields</methodname>
|
||||
<void/>
|
||||
</methodsynopsis>
|
||||
</classsynopsis>
|
||||
<para>
|
||||
Esta función sirve identica en propósito a la función
|
||||
<function>mysqli-fetch-field</function> con la minima diferencia de que,
|
||||
en lugar de regresar un objeto a la vez para cada campo, las columnas son
|
||||
regresadas como una matiz de objetos. Para una descripción de los
|
||||
atributos de cada objeto y su significado vea la función
|
||||
<function>mysqli_fetch_field</function>.
|
||||
This function serves an identical purpose to the <function>mysqli_fetch_field</function>
|
||||
function with the single difference that, instead of returning one object at a time for
|
||||
each field, the columns are returned as an array of objects. For a description of the
|
||||
attributes of each object and their meaning, see the <function>mysqli_fetch_field</function>
|
||||
function.
|
||||
</para>
|
||||
</refsect1>
|
||||
<refsect1>
|
||||
<title>Valores regresados</title>
|
||||
<title>Return values</title>
|
||||
<para>
|
||||
Regresa una matriz de objetos que contienen la información de definició
|
||||
de los campos o &false; si no hay información del campo disponible.
|
||||
Returns an array of objects which contains field definition informations or &false; if no field information
|
||||
is available.
|
||||
</para>
|
||||
<para>
|
||||
<table>
|
||||
<title>Object attributes</title>
|
||||
<tgroup cols='2'>
|
||||
<thead>
|
||||
<row>
|
||||
<entry>Attribute</entry>
|
||||
<entry>Description</entry>
|
||||
</row>
|
||||
</thead>
|
||||
<tbody>
|
||||
<row>
|
||||
<entry>name</entry>
|
||||
<entry>The name of the column</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>orgname</entry>
|
||||
<entry>Original column name if an alias was specified</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>table</entry>
|
||||
<entry>The name of the table this field belongs to (if not calculated)</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>orgtable</entry>
|
||||
<entry>Original table name if an alias was specified</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>def</entry>
|
||||
<entry>The default value for this field, represented as a string</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>max_length</entry>
|
||||
<entry>The maximum width of the field for the result set.</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>flags</entry>
|
||||
<entry>An integer representing the bit-flags for the field.</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>type</entry>
|
||||
<entry>The data type used for this field</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>decimals</entry>
|
||||
<entry>The number of decimals used (for integer fields)</entry>
|
||||
</row>
|
||||
</tbody>
|
||||
</tgroup>
|
||||
</table>
|
||||
</para>
|
||||
</refsect1>
|
||||
<refsect1>
|
||||
<title>Vea también</title>
|
||||
<title>See also</title>
|
||||
<para>
|
||||
<function>mysqli_num_fields</function>
|
||||
<function>mysqli_fetch_field</function>
|
||||
|
@ -49,9 +97,9 @@
|
|||
</para>
|
||||
</refsect1>
|
||||
<refsect1>
|
||||
<title>Ejemplos</title>
|
||||
<title>Example</title>
|
||||
<example>
|
||||
<title>Estilo orientado a objetos</title>
|
||||
<title>Object oriented style</title>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
|
@ -87,7 +135,7 @@ $mysqli->close();
|
|||
</programlisting>
|
||||
</example>
|
||||
<example>
|
||||
<title>Estilo por procedimientos</title>
|
||||
<title>Procedural style</title>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
|
@ -123,7 +171,7 @@ mysqli_close($link);
|
|||
</programlisting>
|
||||
</example>
|
||||
<para>
|
||||
Los ejemplos anteriores producirán la siguiente salida:
|
||||
The above examples would produce the following output:
|
||||
</para>
|
||||
<screen>
|
||||
<![CDATA[
|
||||
|
|
|
@ -1,50 +1,46 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.10 $ -->
|
||||
<!-- EN-Revision: 1.9 Maintainer: baoengb Status: ready -->
|
||||
<!-- $Revision: 1.11 $ -->
|
||||
<refentry id="function.mysqli-fetch-lengths">
|
||||
<refnamediv>
|
||||
<refname>mysqli_fetch_lengths</refname>
|
||||
<refname>result->lengths</refname>
|
||||
<refpurpose>Regresa la longitud de las columnas de la fila actual en el
|
||||
resultado</refpurpose>
|
||||
<refpurpose>Returns the lengths of the columns of the current row in the result set</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
<title>Descripción</title>
|
||||
<para>Estilo por procedimientos:</para>
|
||||
<title>Description</title>
|
||||
<para>Procedural style:</para>
|
||||
<methodsynopsis>
|
||||
<type>mixto</type><methodname>mysqli_fetch_lengths</methodname>
|
||||
<methodparam><type>objeto</type><parameter>resultado</parameter></methodparam>
|
||||
<type>mixed</type><methodname>mysqli_fetch_lengths</methodname>
|
||||
<methodparam><type>object</type><parameter>result</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>Estilo orientado a objetos(propiedad):</para>
|
||||
<para>Object oriented style (property):</para>
|
||||
<classsynopsis>
|
||||
<ooclass><classname>resultado</classname></ooclass>
|
||||
<fieldsynopsis><type>mixto</type><varname>lengths</varname></fieldsynopsis>
|
||||
<ooclass><classname>result</classname></ooclass>
|
||||
<fieldsynopsis><type>mixed</type><varname>lengths</varname></fieldsynopsis>
|
||||
</classsynopsis>
|
||||
<para>
|
||||
La función <function>mysqli_fetch_lengths</function> regresa una matriz
|
||||
conteniendo la longitud de cada columna de la fila actual en el resultado
|
||||
representado por el parámetro <parameter>result</parameter>. Si hay
|
||||
información regresa una matriz numéricamente ordenada representando
|
||||
la longitud de cada columna o &false; si falla.
|
||||
The <function>mysqli_fetch_lengths</function> function returns an array containing the
|
||||
lengths of every column of the current row within the result set represented by the
|
||||
<parameter>result</parameter> parameter. If successful, a numerically indexed array
|
||||
representing the lengths of each column is returned or &false; on failure.
|
||||
</para>
|
||||
</refsect1>
|
||||
<refsect1>
|
||||
<title>Valores regresados</title>
|
||||
<title>Return values</title>
|
||||
<para>
|
||||
Una matriz de enteros representando el tamaño de cada columna (sin incluir
|
||||
el caracter NULL al final de la columna). &false; si ocurre un error.
|
||||
An array of integers representing the size of each column (not including
|
||||
any terminating null characters). &false; if an error occurred.
|
||||
</para>
|
||||
<para>
|
||||
<function>mysql_fetch_lengths</function>Es valida solo para la fila actual
|
||||
en el resultado. Regresa &false; si se llama antes de ejecutar
|
||||
mysql_fetch_row/array/object o después de obtener todas las filas
|
||||
en el resultado.
|
||||
<function>mysql_fetch_lengths</function> is valid only for the current row of the result set.
|
||||
It returns &false; if you call it before calling mysql_fetch_row/array/object or after retrieving
|
||||
all rows in the result.
|
||||
</para>
|
||||
</refsect1>
|
||||
<refsect1>
|
||||
<title>Ejemplos</title>
|
||||
<title>Example</title>
|
||||
<example>
|
||||
<title>Estilo orientado a objetos</title>
|
||||
<title>Object oriented style</title>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
|
@ -76,7 +72,7 @@ $mysqli->close();
|
|||
</programlisting>
|
||||
</example>
|
||||
<example>
|
||||
<title>Estilo por procedimientos</title>
|
||||
<title>Procedural style</title>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
|
@ -109,7 +105,7 @@ mysqli_close($link);
|
|||
</programlisting>
|
||||
</example>
|
||||
<para>
|
||||
Los ejemplos anteriores producirán la siguiente salida:
|
||||
The above examples would produce the following output:
|
||||
</para>
|
||||
<screen>
|
||||
<![CDATA[
|
||||
|
|
|
@ -1,26 +1,25 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.8 $ -->
|
||||
<!-- EN-Revision: 1.7 Maintainer: baoengb Status: ready -->
|
||||
<!-- $Revision: 1.9 $ -->
|
||||
<refentry id="function.mysqli-fetch">
|
||||
<refnamediv>
|
||||
<refname>mysqli_fetch</refname>
|
||||
<refpurpose>Alias de <function>mysqli_stmt_fetch</function></refpurpose>
|
||||
<refpurpose>Alias for <function>mysqli_stmt_fetch</function></refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
<title>Descripción</title>
|
||||
<title>Description</title>
|
||||
<para>
|
||||
Esta función es un alias de <function>mysqli_stmt_fetch</function>.
|
||||
Para una descripción más detallada vea
|
||||
This function is an alias of <function>mysqli_stmt_fetch</function>.
|
||||
For a detailled descripton see description of
|
||||
<function>mysqli_stmt_fetch</function>.
|
||||
</para>
|
||||
<note>
|
||||
<para>
|
||||
<function>mysqli_fetch</function> es obsoleta y será removida.
|
||||
<function>mysqli_fetch</function> is deprecated and will be removed.
|
||||
</para>
|
||||
</note>
|
||||
</refsect1>
|
||||
<refsect1>
|
||||
<title>Vea también</title>
|
||||
<title>See also</title>
|
||||
<para>
|
||||
<function>mysqli_stmt_fetch</function>
|
||||
</para>
|
||||
|
|
Loading…
Reference in a new issue