Foros del Web » Programando para Internet » PHP »

call to undefined function mysql_connect() in

Estas en el tema de call to undefined function mysql_connect() in en el foro de PHP en Foros del Web. Saludos tengo la siguiente configuracion en el php.ini Código PHP: ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;  Error handling  and  logging  ; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;  error_reporting is a bit - field .  Or  each number up to get desired error ;  reporting level ...
  #1 (permalink)  
Antiguo 01/08/2013, 09:24
 
Fecha de Ingreso: mayo-2009
Mensajes: 131
Antigüedad: 14 años, 10 meses
Puntos: 0
call to undefined function mysql_connect() in

Saludos tengo la siguiente configuracion en el php.ini

Código PHP:
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Error handling and logging ;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

error_reporting is a bit-field.  Or each number up to get desired error
reporting level
 E_ALL             
All errors and warnings (doesn't include E_STRICT)
; E_ERROR           - fatal run-time errors
; E_WARNING         - run-time warnings (non-fatal errors)
; E_PARSE           - compile-time parse errors
; E_NOTICE          - run-time notices (these are warnings which often result
;                     from a bug in your code, but it'
s possible that it was
;                     intentional (e.g., using an uninitialized variable and
;                     
relying on the fact it's automatically initialized to an
;                     empty string)
; E_STRICT            - run-time notices, enable to have PHP suggest changes
;                     to your code which will ensure the best interoperability
;                     and forward compatibility of your code
; E_CORE_ERROR      - fatal errors that occur during PHP'
s initial startup
E_CORE_WARNING    warnings (non-fatal errorsthat occur during PHPs
;                     initial startup
E_COMPILE_ERROR   fatal compile-time errors
E_COMPILE_WARNING compile-time warnings (non-fatal errors)
E_USER_ERROR      user-generated error message
E_USER_WARNING    user-generated warning message
E_USER_NOTICE     user-generated notice message
;
Examples:
;
;   - 
Show all errorsexcept for notices and coding standards warnings
;
;
error_reporting E_ALL & ~E_NOTICE
;
;   - 
Show all errorsexcept for notices
;
;
error_reporting E_ALL & ~E_NOTICE E_STRICT
;
;   - 
Show only errors
;
;
error_reporting E_COMPILE_ERROR|E_ERROR|E_CORE_ERROR
;
;   - 
Show all errors except for notices and coding standards warnings
;
error_reporting  =  E_ALL & ~E_NOTICE 
al momento de quitar el (;) de E_ALL al pricincipio del codigo de arriba me genera este error:

Código PHP:
call to undefined function mysql_connect() in direcion de aplicacion 
lo hago por que quiero que me muestre los error y advertencias, no hayo como corregir este error alguien sabe como hacer. Gracias de antemano
  #2 (permalink)  
Antiguo 01/08/2013, 10:31
Avatar de eits  
Fecha de Ingreso: junio-2005
Ubicación: valladolid, yucatán
Mensajes: 1.655
Antigüedad: 18 años, 10 meses
Puntos: 88
Respuesta: call to undefined function mysql_connect() in

pues al parecer esta funcionando y te esta diciendo que existe un error al conectar, recuerda que mysql_connect ya esta absoleta a partir de php 5.5, lo ideal es que uses mysqli o pdo.

saludos
__________________
El amor es la locura mas lucida que tiene el hombre.- Andres Henestrosa
la tristeza no existe, solo es... la ausencia de la felicidad.
  #3 (permalink)  
Antiguo 01/08/2013, 10:32
Avatar de pateketrueke
Modernizr
 
Fecha de Ingreso: abril-2008
Ubicación: Mexihco-Tenochtitlan
Mensajes: 26.399
Antigüedad: 16 años
Puntos: 2534
Respuesta: call to undefined function mysql_connect() in

Antes que nada te sugiero usar un traductor en linea si no entiendes inglés, eso es clave para comprender el error.

Después de eso notarás que el error te está indicando que dicha función no está definida, por lo tanto no existe.

Ahora tendrás que revisar el manual y buscar dicha función, cuando llegues ahí notarás que la extensión de MySQL ya está obsoleta y ahí mismo se te sugieren alternativas.

Para rematar podrías verificar si efectivamente tu versión de PHP no posee dicha extensión, y en el mejor de los casos nos podrías compartir dicha información para tener un escenario más claro a propósito de tu problema.

De paso te sugiero leer esto: http://www.sindominio.net/ayuda/preg...eligentes.html
__________________
Y U NO RTFM? щ(ºдºщ)

No atiendo por MP nada que no sea personal.

Etiquetas: call, function, mysql, undefined, variable
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 21:25.