Questions tagged as 'php'

1
answer

Group by month by adding a MYSQL field

I have this query mysql that should only give me the sum of 2 fields grouped by month of all the years that are registered in the database. It works partially (only the rows of the month add up to day 12 inclusive). SQL Code: SELE...
asked by 18.01.2018 / 14:57
1
answer

PHP and MySQL Get multiple selects checked checboxes

I need to obtain from the database, a specific user with all the interests that I have in the table [a_users_has_interest], and show them in Checkbox, but I also want to show all the Interests at the same time, and the interests of the users be...
asked by 31.07.2017 / 21:29
4
answers

Fixed value in a text field PHP

I have a form where in one of the fields I ask for a person's ID. My question is, how can I make a letter in the input text that is necessary for my registration of the DNI field? I mean, I have the following code: <div class="form-group" s...
asked by 16.08.2017 / 04:46
1
answer

Barcode PDF417

Good morning community, I have a small question regarding a reader that I am using in my project to recognize identity documents.    PDF417 is one of the bar codes that can be used to   print the postage accepted by the Postal Service of t...
asked by 14.08.2017 / 18:51
2
answers

How to 'defragment' an array to make an insert in the database?

In my controller perform the following arrangement $DataPerson= array( 'documentos' => $this->input->post('documentos'), 'num_identificacion' => $this->input->post('num_identifi...
asked by 22.06.2017 / 18:52
1
answer

Error executing the login: mysqli_num_rows () expects parameter 1 to be mysqli_result, string given

<?php require 'conexion.php'; $resultado = $mysqli->query("SELECT * FROM users"); if($_POST['proceso_ingreso']=="iniciando"){ if($_POST['nombreUsuario']!="" && $_POST['password']!=""){ #leyendo los paramentros ingresado...
asked by 24.06.2017 / 02:38
3
answers

Android Volley JsonArrayRequest

The PHP that gives me a list of records through an SQL returns the following PHP $result = $con->query($query); for ($set = array (); $row = $result->fetch_assoc(); $set[] = json_encode($row)); print_r($set); RESULTADO Array ( [0] =>...
asked by 18.07.2017 / 15:28
4
answers

Pass a variable to a modal - PHP

I am making a query to my database, according to the results given. I get the books with a brief bibliographic description of the book, when I give it more try to get the same data and extract more data from my database. based on the ID of each...
asked by 19.07.2017 / 10:12
1
answer

Problems in narrowing MySQL query

I have a table where one of the columns I use to know which users are subscribed to a thread of a forum. This column filled with the user names. For example, the content may be as follows: Paco; Pepe; Laura; If for example I want to find al...
asked by 07.07.2017 / 13:50
2
answers

Get all records without repeating id

I want to make a query to get all the data from my table, but without the idPrincipal being repeated, but getting the others idPrincipal that is, in my table I have the field id auto increment idPrincipal idFinal sent msg the idPrincipal...
asked by 14.07.2017 / 17:02