Questions tagged as 'pdo'

0
answers

Include PHP class (PDO)

Well, I started my PDO studies recently, I'm trying to include a class in a form, but it's giving the error:    failed to open stream: function __autoload($class) { $class = strtolower($class); // Inclui a classe...
asked by 18.06.2018 / 04:05
0
answers

Security in verifying and validating user with PDO: PHP

I want to create a panel with a secure login environment, using the PDO as a form of validation. To explain, I'm using the IPB forum database, basically I want to take advantage of the same user of the forum and create an environment for the...
asked by 09.04.2018 / 03:56
0
answers

Bring the data without repeating the id

I have a table named Posts table , I have a table named Users table , I have a table with the name of Relations table . Now what happens is that this relations table works as follows: The Host user goes on the site and creates a post and...
asked by 25.03.2018 / 09:08
1
answer

Write data in 3 PDO-related tables

I need to insert data into related 3 tables using PDO . The first table t_repo_proj (repositórios) , and the second t_grnte_proj (gerentes) . I need to know which manager is associated with which repository. For this, I created...
asked by 28.03.2018 / 14:47
0
answers

About connection class pdo

I'm developing a small project using php with standard mvc and the smarty template engine. I made a connection class without applying any pattern and it looks like this: Class Conexao extends Config { private $bd_host; private $bd_use...
asked by 20.03.2018 / 01:05
0
answers

Categories and subcategories in a single SELECT

I have the following table structure: CATEGORIAS id titulo SUBCATEGORIAS id id_categoria titulo I wanted to know if there is a way to bring all categories and subcategories at once into a single select as a two-dimensional array sort of li...
asked by 14.03.2018 / 15:33
0
answers

DataTables, Child rows

I'm having a problem with the nested datatables, the child rows (details), are showing all the data, but I want every information to remain in your line, can anyone help me? my code below and an image to illustrate ... function format...
asked by 08.03.2018 / 20:14
1
answer

PHP and Mysql Division without rest in PHP division of tasks

Everyone needs to assign tasks to a variable number of participants. EX: Through a select I get 49 tasks to be executed and I have to distribute to 4 employees. In other words, the division would be 1st employee would have 12 tasks the 2nd em...
asked by 01.03.2018 / 17:56
1
answer

How to make the select complete based on the selected variable in another select

I need to make sure that after choosing the product, in the quantity selection, display a list with the values according to the quantity available, for example: if you have 10 pieces of a trouser, display values from 1 to 10 in the select field...
asked by 19.02.2018 / 20:20
0
answers

Identify browser (php with PDO) [duplicate]

People, good afternoon, I would like to insert in my index a code to identify the browser that the user is using and, if it is Internet Explorer, automatically be redirected to a page called "ie.html" The server side language is PHP with PDO...
asked by 21.02.2018 / 18:14