Questions tagged as 'pdo'

1
answer

Error There is no active transaction

I started to study PDO these days, and I started to do a CRUD, but when I give the insert it shows the error:    There is no active transaction I tried to see other related questions, but I did not understand anything .. (The connection i...
asked by 06.07.2018 / 06:41
1
answer

Pick up repeated records from one column from another column

Hello everyone! I am facing the following problem: I want to get the amount of values that are repeated in the type_of_type column from the location column, ie get the number of records with the same disease from a single locality...
asked by 13.05.2018 / 02:20
1
answer

Request only the last product registered

I am creating a simple system to place order reservations, where I bring the products of the database through a simple while, but if I try to put brackets in my names, example name=name[] it brings all products when clicking on only one ,...
asked by 23.04.2018 / 16:25
3
answers

Form data is not sent to the database

I have a problem to send data from a form to the database the script runs without pointing out an error apparently but does not insert the data someone would know the problem follows the code: <!DOCTYPE html> <html lang="pt-br"> &l...
asked by 10.06.2018 / 09:29
1
answer

How to get the value of a php variable and use it in the ajax request

I am creating a order page with the code below, what I want is that when I choose the quantity of the product, it already appears the total value of the product x quantity . If I set the var price_prod1 = 10; value to work, but in the s...
asked by 07.03.2018 / 21:13
1
answer

php and pdo presence list

What I'm trying to do is that all the people connected to the user logged in to the session with a checkbox so I can put in if he was present or not and is not showing up there to put up presence ... check.php <?php require_once("db...
asked by 24.01.2018 / 17:46
1
answer

How to generate query and add new input?

I have a field input of type date I want every time I click and view it, it generates a select with the query of the date that I set and generate a new input to add another date and so on. > My code so far: HTML FORM <for...
asked by 29.01.2018 / 21:28
1
answer

Register selected checkbox values with php and pdo [closed]

I can not include the selected courses I would also like to know how to register them separated by a "-" <div class="form-group"> <label for="checkbox" class="col-sm-3 control-label">Cursos</label> <div class...
asked by 19.01.2018 / 10:58
1
answer

Only display members with a status in a select with php pdo

What I'm trying to do is select all members of the members table that have the name Lider in the "member" column display in the select sorted by name. <div class="form-group">...
asked by 19.01.2018 / 10:01
1
answer

How to sum the values of an SQL column

I need to make a system that catches the three biggest donors. My table: donate_ID | donate_NAME | donate_AMOUNT This donate_NAME can be repeated, and if it does, its value will add up to the others, but what should be added is...
asked by 14.12.2017 / 17:41