PDOException Object
(
[message:protected] => could not find driver
[string:Exception:private] =>
[code:protected] => 0
[file:protected] => /home/sipse/php/public/novenet.com.mx/db/conexion.php
[line:protected] => 18
[trace:Exception:private] => Array
(
[0] => Array
(
[file] => /home/sipse/php/public/novenet.com.mx/db/conexion.php
[line] => 18
[function] => __construct
[class] => PDO
[type] => ->
[args] => Array
(
[0] => sqlsrv:Server=200.33.136.3; Database=NOVENET; ConnectionPooling=0
[1] => sa
[2] => Novedades2005
)
)
[1] => Array
(
[file] => /home/sipse/php/public/novenet.com.mx/modelo/anuncios_model.php
[line] => 10
[function] => Conectar
[class] => DataBase
[type] => ::
[args] => Array
(
)
)
[2] => Array
(
[file] => /home/sipse/php/public/novenet.com.mx/controlador/anuncio_controller.php
[line] => 7
[function] => __construct
[class] => anuncios_model
[type] => ->
[args] => Array
(
)
)
[3] => Array
(
[file] => /home/sipse/php/public/novenet.com.mx/index.php
[line] => 6
[function] => __construct
[class] => anuncio_controller
[type] => ->
[args] => Array
(
)
)
)
[previous:Exception:private] =>
[errorInfo] =>
)
no se pudo conectar, hay errores
Fatal error: Uncaught Error: Call to a member function query() on null in /home/sipse/php/public/novenet.com.mx/modelo/anuncios_model.php:68
Stack trace:
#0 /home/sipse/php/public/novenet.com.mx/controlador/anuncio_controller.php(71): anuncios_model->terrenos()
#1 /home/sipse/php/public/novenet.com.mx/index.php(11): anuncio_controller->terrenos()
#2 {main}
thrown in /home/sipse/php/public/novenet.com.mx/modelo/anuncios_model.php on line 68