diff --git a/reference/mysqli/functions/mysqli-affected-rows.xml b/reference/mysqli/functions/mysqli-affected-rows.xml index a7fc2fe2d5..fa09aaafbe 100644 --- a/reference/mysqli/functions/mysqli-affected-rows.xml +++ b/reference/mysqli/functions/mysqli-affected-rows.xml @@ -1,70 +1,66 @@ - - + mysqli_affected_rows mysqli->affected_rows - Obtiene el número de filas afectadas en una operación - de MySQL previa + Gets the number of affected rows in a previous MySQL operation - Descripción - Estilo por procedimientos: + Description + Procedural style: - mixtomysqli_affected_rows - objetoidentificador_de_enlace + mixedmysqli_affected_rows + objectlink - Estilo orientado a objetos (característica): + Object oriented style (property): mysqli - mixtoaffected_rows + mixedaffected_rows - mysqli_affected_rows Regresa el número de filas - afectadas por la última consulta INSERT, UPDATE, o DELETE asociada - con el identificador_de_enlace dado. Si la última - consulta fue invalida, esta función regresará -1. + mysqli_affected_rows returns the number of rows affected by the last + INSERT, UPDATE, or DELETE query associated with the provided link + parameter. If the last query was invalid, this function will return -1. - Para sentencias SELECT mysqli_affected_rows trabaja - igual a mysqli_num_rows. + For SELECT statements mysqli_affected_rows works like + mysqli_num_rows. - La función mysqli_affected_rows 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 - mysqli_num_rows en su lugar. + The mysqli_affected_rows function only works with queries which modify + a table. In order to return the number of rows from a SELECT query, use the + mysqli_num_rows function instead. - Valores Regresados + Return Values - 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. - 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. - Vea también + See also mysqli_num_rows, mysqli_info. - Ejemplos + Example - Estilo orientado a objetos + Object oriented style close(); - Estilo por procedimientos + Procedural style - Los ejemplos anteriores producirán la siguiente salida: + The above examples would produce the following output: - - + mysqli_autocommit mysqli->auto_commit - Activa o desactiva la modificación de auto-entrega de - la base de datos + Turns on or off auto-commiting database modifications - Descripción - Estilo por procedimientos: + Description + Procedural style: boolmysqli_autocommit - objetoidentificador_de_enlace - boolmodo + objectlink + boolmode - Estilo orientado a objetos (método) + Object oriented style (method) mysqli bool auto_commit - boolmodo + boolmode - mysqli_autocommit 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 identificador_de_enlace. + mysqli_autocommit is used to turn on or off auto-commit mode + on queries for the database connection represented by the link + object. - mysqli_autocommit No funciona sobre tablas que no son - del tipo transaccional (como MyISAM o ISAM). + mysqli_autocommit doesn't work with non transactional + table types (like MyISAM or ISAM). - 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'. - Valores que regresa + Return values &return.success; - Vea también + See also mysqli_commit, mysqli_rollback. - Ejemplos + Example - Estilo orientado a objetos + Object oriented style close(); - Estilo por procedimientos + Procedural style - Los ejemplos anteriores producirán la siguiente salida: + The above examples would produce the following output: - - + mysqli_bind_param - Alias para mysqli_stmt_bind_param + Alias for mysqli_stmt_bind_param - Descripción + Description - Esta función es un alias de mysqli_stmt_bind_param. - Para una descripción detallada vea + This function is an alias of mysqli_stmt_bind_param. + For a detailled descripton see description of mysqli_stmt_bind_param. - mysqli_bind_param es obsoleta y será removida. + mysqli_bind_param is deprecated and will be removed. - Vea tambi&eacuite;n + See also mysqli_stmt_bind_param diff --git a/reference/mysqli/functions/mysqli-bind-result.xml b/reference/mysqli/functions/mysqli-bind-result.xml index 2c8ca2edfc..dff413df31 100644 --- a/reference/mysqli/functions/mysqli-bind-result.xml +++ b/reference/mysqli/functions/mysqli-bind-result.xml @@ -1,26 +1,25 @@ - - + mysqli_bind_result - Alias para mysqli_stmt_bind_result + Alias for mysqli_stmt_bind_result - Descripción + Description - Esta funció es un alias de mysqli_stmt_bind_result. - Para una descripción detallada vea + This function is an alias of mysqli_stmt_bind_result. + For a detailled descripton see description of mysqli_stmt_bind_result. - mysqli_bind_result es obsoleta y será removida. + mysqli_bind_result is deprecated and will be removed. - Vea también + See also mysqli_stmt_bind_result diff --git a/reference/mysqli/functions/mysqli-change-user.xml b/reference/mysqli/functions/mysqli-change-user.xml index 00b1d696a3..0305534218 100644 --- a/reference/mysqli/functions/mysqli-change-user.xml +++ b/reference/mysqli/functions/mysqli-change-user.xml @@ -1,80 +1,74 @@ - - + mysqli_change_user mysqli->change_user - Cambia el usuario de la conexión a la base de datos especificada + Changes the user of the specified database connection - Descripción - Estilo por procedimientos: + Description + Procedural style: boolmysqli_change_user - objectidentificador_de_enlace - cadenausuario - cadenacontraseña - cadenabase_de_datos + objectlink + stringuser + stringpassword + stringdatabase - Estilo orientado a objetos (método): + Object oriented style (method): mysqli bool change_user - cadenausuario - cadenacontraseńa - cadenabase_de_datos + stringuser + stringpassword + stringdatabase - mysqli_change_user Es usada para cambiar el usuario para - la conexión de base de datos indicada por el parámetro - identificador_de_enlace y para fijar la actual base de datos a la específicada - por el parámetro base_de_datos. + mysqli_change_user is used to change the user of the specified + database connection as given by the link parameter and to set the + current database to that specified by the database parameter. - Si se desea, se puede pasar el valor &null; en lugar del parámetro - base_de_datos 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 mysqli_select_db. + If desired, the &null; value may be passed in place of the database + parameter resulting in only changing the user and not selecting a database. To select + a database in this case use the mysqli_select_db function. - Para poder cambiar de usuario de forma exitosa se debe proveer de un - usuario y contraseña - 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 username and + password 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. - 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. - Valores regresados + Return Values &return.success; - Vea también: + See also: mysqli_connect mysqli_select_db - Ejemplos + Example - Estilo orientado a objetos + Object oriented style close(); - Estilo por procedimientos + Procedural style - Los ejemplos anteriores producirán la siguiente salida: + The above examples would produce the following output: - - + mysqli_character_set_name mysqli->character_set_name - Regresa el conjunto de caracteres determinados por default para - la conexión de base de datos + Returns the default character set for the database connection - Descripción - Estilo por procedumientos: + Description + Procedural style: - cadenamysqli_character_set_name - objetoidentificador_de_enlace + stringmysqli_character_set_name + objectlink - Estilo orientado a objetos (método): + Object oriented style (method): mysqli - cadena + string character_set_name void - Regresa el conjuntos de caracteres actual, determinado para la conexión - de base de datos específicada por el parámetro - identificador_de_enlace. + Returns the current character set for the database connection specified by the + link parameter. - Valores regresados - El conjunto de caracteres por defecto, determinados para la - conexión actual + Return values + The default character set for the current connection - Vea también + See also mysqli_client_encoding. mysqli_real_escape_string. - Ejemplos + Example - Estilo orientado a objetos + Object oriented style close(); - Estilo por procedimientos + Procedural style - Los ejemplos anteriores producirán la siguiente salida: + The above examples would be produce the following output: - - + mysqli_client_encoding - Alias de mysqli_character_set_name + Alias of mysqli_character_set_name - Descripción + Description - Esta función es un alias de mysqli_character_set_name. - Para una descripción detallada vea + This function is an alias of mysqli_character_set_name. + For a detailled descripton see description of mysqli_character_set_name. - Vea también + See also mysqli_client_encoding. mysqli_real_escape_string. diff --git a/reference/mysqli/functions/mysqli-close.xml b/reference/mysqli/functions/mysqli-close.xml index a18ca1e539..6617656422 100644 --- a/reference/mysqli/functions/mysqli-close.xml +++ b/reference/mysqli/functions/mysqli-close.xml @@ -1,20 +1,19 @@ - - + mysqli_close mysqli->close - Cierra la conexión de base de datos previamente abierta + Closes a previously opened database connection - Descripción - Estilo por procedimientos: + Description + Procedural style: boolmysqli_close - objetoidentificador_de_enlace + objectlink - Estilo orientado a objetos (método): + Object oriented style (method): mysqli @@ -24,19 +23,18 @@ - La función mysqli_close cierra una conexión - de base de datos previamente abierta, específicada por el parámetro - identificador_de_enlace. + The mysqli_close function closes a previously opened database + connection specified by the link parameter. - Valores regresados + Return values &return.success; - Vea también + See also mysqli_connect, mysqli_init, diff --git a/reference/mysqli/functions/mysqli-commit.xml b/reference/mysqli/functions/mysqli-commit.xml index 1a28524fca..a245e8840c 100644 --- a/reference/mysqli/functions/mysqli-commit.xml +++ b/reference/mysqli/functions/mysqli-commit.xml @@ -1,20 +1,19 @@ - - + mysqli_commit mysqli->commit - Completa la transacción actual + Commits the current transaction - Descripción - Estilo por procedimientos: + Description + Procedural style: boolmysqli_commit - objetoidentificador_de_enlace + objectlink - Estilo orientado a objetos (método) + Object oriented style (method) mysqli @@ -24,29 +23,28 @@ - Entrega la transacción actual para la conexión de base de datos - específicada por el parametro - link. + Commits the current transaction for the database connection specified by the + link parameter. - Valores regresados + Return values &return.success; - Vea también + See also mysqli_autocommit, mysqli_rollback. - Ejemplos + Examples - Estilo orientado a objetos + Object oriented style close(); - Estilo por procedimientos + Procedural style - - + mysqli_connect_errno - Regresa el código de error de la última llamada a la conexión + Returns the error code from last connect call - Descripción + Description intmysqli_connect_errno void - La función mysqli_connect_errno regresará - el últumo código de error generado por - mysqli_connect. - Si no han ocurrido errores, esta función regresará cero. + The mysqli_connect_errno function will return the last error code number + for last call to mysqli_connect. + If no errors have occured, this function will return zero. - Los números de error del cliente, están listados en el archivo - de MySQL errmsg.h. - Los números de error del servidor, están listados en el archivo - de MySQL mysqld_error.h. - 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 Docs/mysqld_error.txt. + Client error message numbers are listed in the MySQL errmsg.h header file, + server error message numbers are listed in mysqld_error.h. + In the MySQL source distribution you can find a complete list of error messages and error numbers + in the file Docs/mysqld_error.txt. - Valores regresados + Return values - Un código de error para la última llamada a mysqli_connect, - si ésta falla. - Si no hay error entonces se regresa Cero. + An error code value for the last call to mysqli_connect, if it failed. + zero means no error occurred. - Vea también + See also mysqli_connect, mysqli_connect_error, @@ -49,10 +43,10 @@ - Ejemplo + Example - mysqli_connect_errno + mysqli_connect_errno sample - - + mysqli_connect_error - Regresa una descripción del último error de la - conexión + Returns a string description of the last connect error - Descripción + Description - cadenamysqli_connect_error + stringmysqli_connect_error void - La función mysqli_connect_error es identica a - la función mysqli_connect_errno, excepto en que - en vez de regresar el número del código de error, la función - mysqli_connect_error regresará el mensaje de error - correspondiente a la última llamada a la función mysqli_connect. - Si no ha ocurrido error, está función regresará una cadena - vacía. + The mysqli_connect_error function is identical to the corresponding + mysqli_connect_errno function in every way, except instead of returning + an integer error code the mysqli_connect_error function will return + a string representation of the last error to occur for the last + mysqli_connect call. + If no error has occured, this function will return an empty string. - Valores regresados + Return values - 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. - Vea también + See also mysqli_connect, mysqli_connect_errno, @@ -41,10 +37,10 @@ - Ejemplo + Example - mysqli_connect_error + mysqli_connect_error sample - - + mysqli_connect mysqli() - Abre una nueva conexión al servidor MySQL + Open a new connection to the MySQL server - Descripción - Estilo por procedimientos + Description + Procedural style - objetomysqli_connect - cadenaequipo_anfitrión - cadenausuario - cadenacontraseña - cadenabase_de_datos - intpuerto - cadenasocket + objectmysqli_connect + stringhost + stringusername + stringpasswd + stringdbname + intport + stringsocket - Estilo orientado a objetos (constructor): + Object oriented style (constructor): mysqli __construct - cadenaequipo_anfitrión - cadenausuario - cadenacontraseña - cadenabase_de_datos - intpuerto - cadenasocket + stringhost + stringusername + stringpasswd + stringdbname + intport + stringsocket - La función mysqli_connect intenta abrir una conexión - al servidor MySQL que se está ejecutando en equipo_afitrión - 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 mysqli_connect - regresará un objeto representando la conexión a la base de datos, - o &false; en caso contrario. + The mysqli_connect function attempts to open a connection to the MySQL Server + running on host 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 mysqli_connect + will return an object representing the connection to the database, or &false; on failure. - En los parámetros usuario y contraseña - 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 username and password 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). - Si se específica el parámetro base_de_datos - especificará la base de datos a usar por defecto cuando se ejecuten - consultas. + The dbname parameter if provided will specify the default database to be + used when performing queries. - Los parámetros puerto y socket - son usados junto con el parámetro equipo_anfitrión - para controla a futuro como conectar al servidor de base de datos. - El parámetro puerto específica el número - de puerto al que se intenta conectar en el servidor MySQL, mientras que el - parámetro socket específica el socket o - la pipa nombrada "pipe" que debe ser usada. + The port and socket parameters are used in + conjunction with the host parameter to further control how to connect + to the database server. The port parameter specifies the port number to + attempt to connect to the MySQL server on, while the socket parameter + specifies the socket or named pipe that should be used. - Especificar el parámetro socket no determina - explícitamente el tipo de conexión a ser usado cuando se conecta - al servidor MySQL. El parámetro equipo_anfitrión - determina como se hace la conexión a la base de datos MySQL. + Specifying the socket 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 host parameter. - Valores regresados + Return values - 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. - Ejemplos + Example - Estilo orientado a objetos + Object oriented style close(); - Estilo por procedimientos + Procedural style - Los ejemplos anteriores producirán la siguiente salida: + The above examples would produce the following output: - - + mysqli_data_seek result->data_seek - Ajusta el apuntador arbitrariamente a una fila en el resultado + Adjusts the result pointer to an arbitary row in the result - Descripción - Estilo por procedimientos: + Description + Procedural style: boolmysqli_data_seek - objetoresultado - intposición + objectresult + intoffset - Estilo orientado a objetos (método): + Object oriented style (method): - resultado + result bool data_seek - intposición + intoffset - La función mysqli_data_seek busca arbitrariamente - apuntar al valor específicado por posición - en el conjunto resultante representado por result. - Los valores del parámetro posición - deben estar entre cero y el total de filas menus uno (0 .. mysqli_num_rows - 1). + The mysqli_data_seek function seeks to an arbitrary result pointer + specified by the offset in the result set represented by + result. The offset parameter must be between + zero and the total number of rows minus one (0..mysqli_num_rows - 1). - Está función solo puede ser usada con resultados sin almacenamiento - intermedio logrados por el uso de las funciones - mysqli_store_result o mysqli_query. + This function can only be used with unbuffered results attained from the use of the + mysqli_store_result or mysqli_query functions. - Valores regresados + Return values &return.success; - Vea también + See also mysqli_store_result, mysqli_fetch_row, @@ -54,9 +51,9 @@ - Ejemplos + Example - Estilo orientado a onjetos + Object oriented style close(); - Estilo por procedimientos + Procedural style - Los ejemplos anteriores producirán la siguiente salida: + The above examples would produce the following output: - - + mysqli_debug - Realiza operaciones de rastreo de errores + Performs debugging operations - Descripción + Description voidmysqli_debug - cadenaacción + stringdebug - La función mysqli_debug es usada para realizar - operaciones de rastreo y eliminación de errores utilizando la libreria - "Fred Fish". El parámetro acción - es una cadena que representa las operaciones de rastreo de errores a realizar. + The mysqli_debug function is used to perform debugging + operations using the Fred Fish debugging library. The debug + parameter is a string representing the debugging operation to perform. - Para usar la funció mysqli_debug se debe compilar - el cliente de MySQL con soporte para rastreo de errores "debugging". + To use the mysqli_debug function you must complile + the MySQL client library to support debugging. - Valores regresados - mysqli_debug no regresa ningún valor. + Return values + mysqli_debug doesn't return any value. - Vea también + See also mysqli_dump_debug_info, mysqli_report - Ejemplo + Example - Generar un archivo de rastreo + Generating a Trace File - - + mysqli_disable_reads_from_master - Descripción + Description voidmysqli_disable_reads_from_master - intidentificador_de_enlace + resourcelink &warn.experimental.func; diff --git a/reference/mysqli/functions/mysqli-disable-rpl-parse.xml b/reference/mysqli/functions/mysqli-disable-rpl-parse.xml index dc53fd4e3b..589db08c39 100644 --- a/reference/mysqli/functions/mysqli-disable-rpl-parse.xml +++ b/reference/mysqli/functions/mysqli-disable-rpl-parse.xml @@ -1,16 +1,15 @@ - - + mysqli_disable_rpl_parse - Descripción + Description voidmysqli_disable_rpl_parse - objetoidentificador_de_enlace + objectlink &warn.experimental.func; diff --git a/reference/mysqli/functions/mysqli-dump-debug-info.xml b/reference/mysqli/functions/mysqli-dump-debug-info.xml index 4a7d5034d9..850583d079 100644 --- a/reference/mysqli/functions/mysqli-dump-debug-info.xml +++ b/reference/mysqli/functions/mysqli-dump-debug-info.xml @@ -1,33 +1,31 @@ - - + mysqli_dump_debug_info mysqli->dump_debug_info - Vacía información de rastreo de errores en el log + Dump debugging information into the log - Descripción + Description boolmysqli_dump_debug_info - objetoidentificador_de_enlace + objectlink - 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 identificador_de_enlace. + 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 link parameter. - Valores regresados + Return values &return.success; - Vea también + See also mysqli_debug. diff --git a/reference/mysqli/functions/mysqli-embedded-connect.xml b/reference/mysqli/functions/mysqli-embedded-connect.xml index e6f0757320..62662fca46 100644 --- a/reference/mysqli/functions/mysqli-embedded-connect.xml +++ b/reference/mysqli/functions/mysqli-embedded-connect.xml @@ -1,13 +1,12 @@ - - + mysqli_embedded_connect - Abre una conexió a un servidor MySQL embebido. + Open a connection to an embedded mysql server. - Descripción + Description objectmysqli_embedded_connect void diff --git a/reference/mysqli/functions/mysqli-enable-reads-from-master.xml b/reference/mysqli/functions/mysqli-enable-reads-from-master.xml index dc8fbe0cae..3dcb8251ab 100644 --- a/reference/mysqli/functions/mysqli-enable-reads-from-master.xml +++ b/reference/mysqli/functions/mysqli-enable-reads-from-master.xml @@ -1,16 +1,15 @@ - - + mysqli_enable_reads_from_master - Descripción + Description voidmysqli_enable_reads_from_master - objetoidentificador_de_enlace + objectlink &warn.experimental.func; diff --git a/reference/mysqli/functions/mysqli-enable-rpl-parse.xml b/reference/mysqli/functions/mysqli-enable-rpl-parse.xml index d4bbfd5e3c..3561ae1b37 100644 --- a/reference/mysqli/functions/mysqli-enable-rpl-parse.xml +++ b/reference/mysqli/functions/mysqli-enable-rpl-parse.xml @@ -1,16 +1,15 @@ - - + mysqli_enable_rpl_parse - Descripción + Description voidmysqli_enable_rpl_parse - objetoidentificador_de_enlace + objectlink &warn.experimental.func; diff --git a/reference/mysqli/functions/mysqli-errno.xml b/reference/mysqli/functions/mysqli-errno.xml index 7c9ce94e0d..168bc6064f 100644 --- a/reference/mysqli/functions/mysqli-errno.xml +++ b/reference/mysqli/functions/mysqli-errno.xml @@ -1,53 +1,46 @@ - - + mysqli_errno mysql->errno - Regresa el código de error para la función más - recientemente llamada + Returns the error code for the most recent function call - Descripción - Estilo por procedimientos: + Description + Procedural style: intmysqli_errno - objetoidentificador_de_enlace + objectlink - Estilo orientado a objetos (propiedad): + Object oriented style (property): mysqli interrno - La función mysqli_errno 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 identificador_de_enlace. - Si no han ocurrido errores, está función regresará cero. + The mysqli_errno 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 link parameter. If no errors + have occured, this function will return zero. - Los números de error del cliente, están listados en el archivo - de MySQL errmsg.h. - Los números de error del servidor, están listados en el archivo - de MySQL mysqld_error.h. - 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 Docs/mysqld_error.txt. + Client error message numbers are listed in the MySQL errmsg.h header file, + server error message numbers are listed in mysqld_error.h. + In the MySQL source distribution you can find a complete list of error messages and error numbers + in the file Docs/mysqld_error.txt. - Valores regresados + Return values - 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. - Vea también + See also mysqli_connect_errno, mysqli_connect_error, @@ -56,9 +49,9 @@ - Ejemplos + Example - Estilo orientado a objetos + Object oriented style close(); - Estilo por procedimientos + Procedural style - Los ejemplos anteriores producirán la siguiente salida: + The above examples would produce the following output: - - + mysqli_error - Regresa una cadena con la descripció del último error + Returns a string description of the last error - Descripción - Estilo por procedimientos: + Description + Procedural style: - cadenamysqli_error - objetoidentificador_de_enlace + stringmysqli_error + objectlink - Estilo orientado a objetos (propiedad) + Object oriented style (property) mysqli - cadenaerror + stringerror - La funció mysqli_error es identica a la correspondiente - mysqli_errno en todos los sentidos, excepto en que en - lugar de regresar un valor numérico, la función mysqli_error - regresará un mensaje de error, representando el último error - ocurrido para la conexió de base de datos identificador_de_enlace. - Si no han ocurrido errores, está función regresará una cadena vacía. + The mysqli_error function is identical to the corresponding + mysqli_errno function in every way, except instead of returning + an integer error code the mysqli_error function will return + a string representation of the last error to occur for the database connection + represented by the link parameter. If no error has occured, + this function will return an empty string. - Valores regresados + Return values - 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. - Vea también + See also mysqli_connect_errno, mysqli_connect_error, @@ -44,9 +42,9 @@ - Ejemplos + Example - Estilo orientado a objetos + Object oriented style close(); - Estilo por procedimientos + Procedural style - Los ejemplos anteriores producirán la siguiente salida: + The above examples would produce the following output: - - + mysqli-escape-string - Alias de mysqli_real_escape_string + Alias of mysqli_real_escape_string - Descripción + Description - Esta función es un alias de mysqli_real_escape_string. + This function is an alias of mysqli_real_escape_string. diff --git a/reference/mysqli/functions/mysqli-execute.xml b/reference/mysqli/functions/mysqli-execute.xml index f1b05c4d6d..20ceff5c90 100644 --- a/reference/mysqli/functions/mysqli-execute.xml +++ b/reference/mysqli/functions/mysqli-execute.xml @@ -1,26 +1,25 @@ - - + mysqli_execute - Alias de mysqli_stmt_execute + Alias for mysqli_stmt_execute - Descripción + Description - Esta función es un alias de mysqli_stmt_execute. - Para una descipció más detallada vea la descripción de + This function is an alias of mysqli_stmt_execute. + For a detailled descripton see description of mysqli_stmt_execute. - mysqli_execute es obsoleta y será removida. + mysqli_execute is deprecated and will be removed. - Vea también + See also mysqli_stmt_execute diff --git a/reference/mysqli/functions/mysqli-fetch-array.xml b/reference/mysqli/functions/mysqli-fetch-array.xml index 81a5c23933..56d09e4a0c 100644 --- a/reference/mysqli/functions/mysqli-fetch-array.xml +++ b/reference/mysqli/functions/mysqli-fetch-array.xml @@ -1,72 +1,65 @@ - - + mysqli_fetch_array result->fetch_array - Obtiene una fila como una matriz asociativa, una matriz numérica o ambos. + Fetch a result row as an associative, a numeric array, or both. - Descripción - Estilo por procedimientos: + Description + Procedural style: - mixtomysqli_fetch_array - objetoresultado - inttipo_de_resultado + mixedmysqli_fetch_array + objectresult + intresulttype - Estilo orientado a objetos (método): + Object oriend style (method): - resultado + result - mixto + mixed fetch_array - inttipo_de_resultado + intresulttype - 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 - resultado. + Returns an array that corresponds to the fetched row or &null; if there are no more rows for the + resultset represented by the result parameter. - mysqli_fetch_array es una versión mejorada de la función - mysqli_fetch_row. Ademá de almacenar los datos en - índices numéricos de la matriz resultante, la función - mysql_fetch_array también puede almacenar los datos en - índices asociativos, usando los nombre de los campos de el resultado como llaves. + mysqli_fetch_array is an extended version of the + mysqli_fetch_row function. In addition to storing the data in the + numeric indices of the result array, the mysqli_fetch_array function can + also store the data in associative indices, using the field names of the result set as keys. &database.field-case; - 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. - El parámetro opcional tipo_de_resultado 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 - mysqli_fetch_array asumirá el valor de MYSQLI_BOTH. + The optional second argument resulttype 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 + mysqli_fetch_array function will assume MYSQLI_BOTH for this parameter. - Al usar la constante MYSQLI_ASSOC, esta función se comportará - identica a la función mysqli_fetch_assoc, mientras - que con MYSQLI_NUM se comportará identica a la función - mysql_fetch_row. 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 + mysqli_fetch_assoc, while MYSQLI_NUM will behave identically to the + mysqli_fetch_row function. The final option MYSQLI_BOTH will create a single + array with the attributes of both. - Valores regresados + Return values - 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. - Vea también + See also mysqli_fetch_assoc, mysqli_fetch_row, @@ -74,9 +67,9 @@ - Ejemplos + Example - Estilo orientado a objetos + Object oriented style close(); - Estilo por procedimientos + Procedural style - Los ejemplos anteriores producián la siguiente salida: + The above examples would produce the following output: - - + mysqli_fetch_assoc mysqli->fetch_assoc - Obtiene una fila del resultado como una matriz asociativa + Fetch a result row as an associative array - Descripción - Estilo por procedimientos: + Description + Procedural style: - matrizmysqli_fetch_assoc - objetoresultado + arraymysqli_fetch_assoc + objectresult - Estilo orientado a objetos (método): + Object oriend style (method): - resultado + result - matriz + array fetch_assoc void - 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. - La función mysqli_fetch_assoc es usada para regresar - una representación asociativa de la siguiente fila en el resultado, - representado por el parámetro resultado, donde - cada llave en la matriz representa el nombre de las columnas en el resultado. + The mysqli_fetch_assoc function is used to return an associative array + representing the next row in the result set for the result represented by the + result parameter, where each key in the array represents the name + of one of the result set's columns. - 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 + mysqli_fetch_row or add alias names. &database.field-case; - Valores regresados + Return values - 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. - Vea también + See also mysqli_fetch_array, mysqli_fetch_row, @@ -57,9 +56,9 @@ - Ejemplos + Example - Estilo orientado a objetos + Object oriented style close(); - Estilo por procedimientos + Procedural style - Los ejemplos anteriores producirán la siguiente salida: + The above examples would produce the following output: - - + mysqli_fetch_field_direct result->fetch_field_direct - Obtiene los metadatos de un campo + Fetch meta-data for a single field - Descripción - Estilo por procedimientos: + Description + Procedural style: - mixtomysqli_fetch_field_direct - objetoresultado - intindice_de_campo + mixedmysqli_fetch_field_direct + objectresult + intfieldnr - Estilo orientado a objetos (método): + Object oriented style (method): - resultado + result - mixto + mixed fetch_field_direct - intindice_de_campo + intfieldnr - La función mysqli_fetch_field_direct 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 0 a número de campos -1. + mysqli_fetch_field_direct returns an object which contains + field definition informations from specified resultset. The value of fieldnr must be in the + range from 0 to number of fields - 1. - Valores regresados + Return values - Regresa un objeto el cual contiene información de la definición del - campo o &false; si no hay información para el indice_de_campo - específicado. + Returns an object which contains field definition informations or &false; if no field information + for specified fieldnr is available. - Atributos del objeto + Object attributes - Atributo - Descripción + Attribute + Description name - Nombre de la columna + The name of the column orgname - Nombre original de la columna si se dió un alias + Original column name if an alias was specified table - Nombre de la tabla a la que pertenece el campo + The name of the table this field belongs to (if not calculated) orgtable - Nombre original de la tabla si se dió un alias + Original table name if an alias was specified def - El valor por defecto para este campo, representado como una cadena + The default value for this field, represented as a string max_length - La amplitud máxima de campo de el campo para el resultado + The maximum width of the field for the result set. flags - Un entero que representa los bit bandera para el campo + An integer representing the bit-flags for the field. type - Tipo de dato utilizado para este campo + The data type used for this field decimals - Número de decimales usadas (para campos entero) + The number of decimals used (for integer fields) @@ -93,7 +90,7 @@ - Vea también + See also mysqli_num_fields mysqli_fetch_field @@ -101,9 +98,9 @@ - Ejemplos + Example - Estilo orientado a objetos + Object oriented style close(); - Estilo por procedimientos + Procedural style - Los ejemplos anteriores producirán la siguiente salida: + The above examples would produce the following output: - - + mysqli_fetch_field result->fetch_field - Regresa metadatos de el campo en el resultado + Returns the next field in the result set - Descripción - Estilo por procedimientos: + Description + Procedural style: - mixtomysqli_fetch_field - objetoresultado + mixedmysqli_fetch_field + objectresult - Estilo orientado a objetos (método): + Object oriented style (method): - resultado + result - mixto - fetch_field - + mixedfetch_field + - La función mysqli_fetch_field 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. mysqli_fetch_field - regresa &false; cuando no hay más columnas en el resultado. + The mysqli_fetch_field 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. + mysqli_fetch_field returns &false; when no more fields + are left. - Valores regresados + Return values - 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.
- Atributos del objeto + Object attributes - Atributo - Descripción + Attribute + Description name - El nombre de la columna + The name of the column orgname - Nombre original de la columna, si se específico un alias + Original column name if an alias was specified table - El nombre de la tablaa la cuál pertenece + The name of the table this field belongs to (if not calculated) orgtable - Nombre original de la tabla si se específico un alias + Original table name if an alias was specified def - El valor por defecto de este campo, representado con una cadena + The default value for this field, represented as a string max_length - La máma amplitud del campo para el resultado + The maximum width of the field for the result set. flags - Un entero representando los bit de bandera para el campo + An integer representing the bit-flags for the field. type - El tipo de dato usado para este campo + The data type used for this field decimals - El número de decimales utilizadas (para campos numéricos) + The number of decimals used (for integer fields) @@ -90,7 +88,7 @@ - Vea también + See also mysqli_num_fields mysqli_fetch_field_direct @@ -99,9 +97,9 @@ - Ejemplos + Example - Estilo orientado a objetos + Object oriented style close(); - Estilo por procedimientos + Procedural style - Los ejemplos anteriores producirán la siguiente salida: + The above examples would produce the following output: - - + mysqli_fetch_fields result->fetch_fields - Regresa una matriz de objetos representando los campos en un - resultado + Returns an array of objects representing the fields in a result set - Descripción - Estilo por procedimientos: + Description + Procedural Style: - mixtomysqli_fetch_fields - objetoresultado + mixedmysqli_fetch_fields + objectresult - Estilo orientado a objetos (método): + Object oriented style (method): - resultado + result - mixto + mixed fetch_fields - Esta función sirve identica en propósito a la función - mysqli-fetch-field 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 - mysqli_fetch_field. + This function serves an identical purpose to the mysqli_fetch_field + 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 mysqli_fetch_field + function. - Valores regresados + Return values - 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. + + +
+ Object attributes + + + + Attribute + Description + + + + + name + The name of the column + + + orgname + Original column name if an alias was specified + + + table + The name of the table this field belongs to (if not calculated) + + + orgtable + Original table name if an alias was specified + + + def + The default value for this field, represented as a string + + + max_length + The maximum width of the field for the result set. + + + flags + An integer representing the bit-flags for the field. + + + type + The data type used for this field + + + decimals + The number of decimals used (for integer fields) + + + +
- Vea también + See also mysqli_num_fields mysqli_fetch_field @@ -49,9 +97,9 @@ - Ejemplos + Example - Estilo orientado a objetos + Object oriented style close(); - Estilo por procedimientos + Procedural style - Los ejemplos anteriores producirán la siguiente salida: + The above examples would produce the following output: - - + mysqli_fetch_lengths result->lengths - Regresa la longitud de las columnas de la fila actual en el - resultado + Returns the lengths of the columns of the current row in the result set - Descripción - Estilo por procedimientos: + Description + Procedural style: - mixtomysqli_fetch_lengths - objetoresultado + mixedmysqli_fetch_lengths + objectresult - Estilo orientado a objetos(propiedad): + Object oriented style (property): - resultado - mixtolengths + result + mixedlengths - La función mysqli_fetch_lengths regresa una matriz - conteniendo la longitud de cada columna de la fila actual en el resultado - representado por el parámetro result. Si hay - información regresa una matriz numéricamente ordenada representando - la longitud de cada columna o &false; si falla. + The mysqli_fetch_lengths function returns an array containing the + lengths of every column of the current row within the result set represented by the + result parameter. If successful, a numerically indexed array + representing the lengths of each column is returned or &false; on failure. - Valores regresados + Return values - 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. - mysql_fetch_lengthsEs 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. + mysql_fetch_lengths 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. - Ejemplos + Example - Estilo orientado a objetos + Object oriented style close(); - Estilo por procedimientos + Procedural style - Los ejemplos anteriores producirán la siguiente salida: + The above examples would produce the following output: - - + mysqli_fetch - Alias de mysqli_stmt_fetch + Alias for mysqli_stmt_fetch - Descripción + Description - Esta función es un alias de mysqli_stmt_fetch. - Para una descripción más detallada vea + This function is an alias of mysqli_stmt_fetch. + For a detailled descripton see description of mysqli_stmt_fetch. - mysqli_fetch es obsoleta y será removida. + mysqli_fetch is deprecated and will be removed. - Vea también + See also mysqli_stmt_fetch