Questions tagged as 'pdo'

0
answers

Laravel 5.2: php artisan returns "Could not find driver" in terminal

I am adapting the Socialite topic of JOJO Themes in a site and it is giving me an error when executing php artisan in the terminal of my server. I have already made the corresponding configuration to the database and the application...
asked by 20.01.2017 / 07:08
1
answer

the PDO record is not updated

hi friends of the community I have a problem I'm doing UPDATE but the problem is that I jump for the alert once and I do not update the record the me you receive the parameters well the only problem is when performing the UPDATE append the code...
asked by 08.12.2016 / 02:53
2
answers

Error printing a text type record in php using pdo and informix

Friends please, I need help, Until yesterday, I did not have a problem printing records that I have in my informix database from php using pdo. But yesterday I came across a type registry (text), and it printed me (resource id #) As I said any o...
asked by 08.12.2016 / 15:18
2
answers

insert value date in informix from php using pdo

I have a problem when I try to make an insert of type date to my database in informix from php using pdo. I do not have problems with another type of data, I did the test with the majority For example to make an insert to this table Create pru...
asked by 24.10.2016 / 22:55
2
answers

How to list records using a LIKE filter

I am developing my first project with PDO PHO, I want to list some records of the database but filtering with Like In the class I have the Search by Name function as follows public static function buscarPorNombre($nombre){ $conexion =...
asked by 20.10.2016 / 08:59
0
answers

register shopping cart in php with pdo

how to register this shopping cart in php with pdo the php that filled the cart is this <div class="container"> <div class="row"> <?php $productos->carrito(); ?> <?php...
asked by 21.10.2016 / 03:31
0
answers

OCI PDO does not execute the query in PHP

This problem arose in my final project at the university and it is a web page with PHP oriented to objects, and ORACLE database manager, everything was fine with the connection until when executing a procedure in PHP he does not do anything....
asked by 22.07.2016 / 00:14
1
answer

Problems with data type in array within a class

I'm using PHP/PDO with DAO and VO . This is the index.php: <?php require ('includes/config.php'); $DAO = new TrabajoDAO(); $listas = $DAO->Listar(); $tpl = new Plantilla(); $tpl->assign('list...
asked by 05.06.2017 / 22:35
1
answer

Problem when using variable in PDO query

I have a web in which I want to pass a variable from one page to another but I only get to recognize the database ID, when I change the parameter it does not show me anything. I pass the code that works for me and also the code that gives me pro...
asked by 05.03.2018 / 15:07
1
answer

PDO using LIKE in the MySQL query

I have the following code $damn = '%'.$busqueda.'%'; $q_i = $this->pdo->prepare('SELECT * FROM registro_viaje WHERE (id_pas_reg LIKE ? OR nomc_pas_reg LIKE ? OR tel_pas_reg LIKE ?) AND matricula_veh_reg=?'); $q_i-...
asked by 14.10.2016 / 01:50