Questions tagged as 'pdo'

0
answers

Problem with PDO extension Postgres

I use apache + php7 + postgres on Ubuntu and it works fine. But now I wanted to do the installation by hand in Windows 8.1 and found a problem: I installed Apache 2.4, PHP 7.1, and Postgres. Apache worked fine, but when I test my projec...
asked by 25.01.2017 / 02:57
1
answer

How to limit the number of pages displayed on a page?

With this question that already has a workaround, I got as a result a paginação com PDO but I have one more problem that will possibly be the target of a reward next week. As you can see in the image below, I have this page with +...
asked by 03.10.2014 / 22:03
1
answer

Query is executed, but the data does not go to the database

Good afternoon, Galera, I'm studying the PDO and with the following difficulty, the query executes (Or rather, it does not return any errors), but when I go to the bank, it does not have anything, what do I do? / p> pdo = new PDO ("mysql:host...
asked by 10.12.2016 / 16:39
0
answers

PDO for DOCTRINE - Haversine formula

I need to transfer the query in PDO below to DOCTRINE: $query = $con->query('SELECT *, ( 6371 * acos( cos( radians('.$latitude.') ) * cos( radians( latitude ) ) * cos( radians( longitude ) - radians('.$longitude.') ) + sin( r...
asked by 19.11.2016 / 01:15
1
answer

PHP PDO for SQL SERVER [duplicate]

Good afternoon, I'm trying to connect to my PHP pages in MS SQL SERVER using PDO, but I'm having trouble. I tried to use the PHP manual, but I'm getting confused and I'm not getting it. The page is returning this error: Failed to get DB han...
asked by 22.01.2017 / 20:02
2
answers

Problem in instantiation using pdo / Fatal error: Uncaught Error: Class

The following error appears when trying to instantiate and call a particular method:    Fatal error: Uncaught Error: Class 'User' not found in   C: \ xampp \ htdocs \ Projects \ reports.php: 126 Stack trace: # 0 {main}   thrown in C: \ xampp...
asked by 07.10.2016 / 17:44
1
answer

How to make the return of a Query (PDO)

How can I make the selected input month to swallow me the selected user's month and year? It is returning the user but when I do the input month to bring the user data for a certain month it does not come. thisisthequerypublicfunctionRetorna...
asked by 03.10.2016 / 23:00
0
answers

How to use PHP Objects and Transaction Control in MySQL?

I have a database with some tables, and I've created a class for handling each table in the bank, one example is one class for requests and another for Orders . Each class handles your table, and when a class needs to write data to another tabl...
asked by 04.10.2016 / 16:31
0
answers

Select MYSQL, list row not present in table NULL

I'm doing a hotsite with a quiz (questions and answers), with more than 3000 users. The question is in the list of quizes for each user, I have two tables (I simplified to focus on my doubt): QUIZ: (which stores all the quizes created by ad...
asked by 16.08.2016 / 15:20
0
answers

'' could not find '' - xamp - can not connect database

I have to maintain a zend application, but I can not run it at all, it seems the bank is not connecting, it generates this warning.    "could not find"; Countless times. the problem is that I have already removed the lines in php.ini ex...
asked by 30.10.2016 / 08:11