Questions tagged as 'pdo'

2
answers

Empty list of PDO + MVC + PHP records

I am working on a Project Management System under the MVC pattern and the problem is when I print the records of my database in the CRUD, all the rows that correspond to my "winners" table are appreciated but empty Thanks in advance here I enclo...
asked by 08.03.2018 / 03:37
1
answer

the sql statement in postgres, is the prefix "public" necessary?

I am working with PHP and PDO connecting to a postgresql database, I have a doubt, since something that I do not expect is happening. $pdo = new PDO('pgsql:dbname=db_pdo_postgresql; host=localhost;', 'juan_postgres...
asked by 18.02.2018 / 14:00
2
answers

What this error is in PHP with SQL Server

Hello! After a long wait at the end, I have to develop a system using Yii2 and SQL Server . I downloaded XAMPP with PHP 5.6.31 and I installed SQL Server 2008 and I can not connect to the database. I have already tried down...
asked by 01.03.2018 / 15:04
2
answers

problems calculating percentage with array

greetings community I have a problem when calculating the percentage since now I use the input as an array and it does not work for me the minimum fields are 4 and the maximum fields are 14 I also have my function to add fields if I wish , but a...
asked by 29.01.2018 / 17:24
2
answers

I get an error Call to undefined method PDOStatement :: store_result ()

This is the error    Fatal error: Uncaught Error: Call to undefined method   PDOStatement :: store_result () in   C: \ xampp \ htdocs \ helpProgramming \ core \ controllers \ searchWController.php: 44   Stack trace: # 0 C: \ xampp \ htdocs \...
asked by 29.12.2017 / 23:06
1
answer

Get id from the url

I am sending the id by the url, in the view of my browser it is displayed in this way    localhost / maybe% 20company / chat / index.php? id = 4 I want that id of the url can be obtained from another file that is called by index.php...
asked by 24.07.2017 / 03:48
1
answer

Correct use of Symfony models when complex Querys are needed

I am very new to Symfony, I was looking at the documentation regarding the models, and all the examples and indications place a lot of emphasis on entities ( Entities ) that are well defined in the DB. My problem is that the system I am do...
asked by 30.07.2017 / 01:57
1
answer

Error when making a query with PDO

   Fatal error: Uncaught PDOException: SQLSTATE [42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '' inventory...
asked by 31.08.2017 / 19:35
1
answer

Error connecting to the BDD through a class

I am using a class that a user provided me with in a question that I published some time ago. The fact is that through this class I can make the connection to the database and make queries, etc. I was doing a connection test when when exec...
asked by 31.08.2017 / 10:05
1
answer

Delete a row from a single table by doing INNER JOIN from several tables

I have the following tables: users : +----------------+-----------------+------+-----+-------------------+-----------------------------+ | Field | Type | Null | Key | Default | Extra | +-...
asked by 27.06.2017 / 21:53