 
			
				29/03/2011, 12:53
			
			
			     |  
        |     Colaborador   |    |    Fecha de Ingreso: abril-2010  Ubicación: Venezuela Maracay Aragua  
						Mensajes: 3.156
					  Antigüedad: 15 años, 6 meses Puntos: 461     |        |  
  |      Respuesta: Manejo de excepciones/errores en acceso a MySQL. ¿Cómo lo hago?         Cita:  
					Iniciado por _ssx    ¿Quieres hacer algo más profesional?  
Usa PDO y maneja los errores con Excepciones.    Código PHP:     <?php
 try {
     $db = new PDO("mysql:dbname=pdo;host=localhost", "username", "password" );
     echo "PDO connection object created";
     }
 catch(PDOException $e)
     {
     //Aqui caen tus errores.
     echo $e->getMessage();
     }
 ?>            +1 con esta opción      
				__________________  aprende d tus errores e incrementa tu conocimientos
it's not a bug, it's an undocumented feature By @David  php the right way           |