Join Up!
96806 members and counting!

 
downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links 
search for in the  
previousmysql_errnomysql_escape_stringnext
Last updated: Tue, 29 Oct 2002
view the printer friendly version or the printer friendly version with notes or change language to Czech | Finnish | German

mysql_error

(PHP 3, PHP 4 )

mysql_error -- Devuelve el texto del mensaje de error de la última operación MySQL

Descripción

string mysql_error ( [int identificador_de_enlace])

Los errores devueltos por mySQL no indican los warnings. Usar estas funciones para encontrar el número de error.

<?php
mysql_connect("marliesle");
echo mysql_errno().": ".mysql_error()."<BR>";
mysql_select_db("nonexistentdb");
echo mysql_errno().": ".mysql_error()."<BR>";
$conn = mysql_query("SELECT * FROM nonexistenttable");
echo mysql_errno().": ".mysql_error()."<BR>";
?>

Ver también: mysql_errno()

User Contributed Notes
mysql_error
add a note about notes
There are no user contributed notes for this page.
previousmysql_errnomysql_escape_stringnext
Last updated: Tue, 29 Oct 2002
Copyright © 2001, 2002 The PHP Group
All rights reserved.
This mirror generously provided by: http://phpbuilder.com/
Last updated: Thu Oct 31 18:34:28 2002 EST