Questions tagged as 'php'

2
answers

Validate a dynamic Combobox with PHP

Currently I have a dynamic combo where when selecting a State you throw the due Municipality to which that State belongs. What I want is to validate from the server side that the selected municipality actually belongs to that state, since it...
asked by 28.08.2018 / 00:11
1
answer

How to enter values to an array with the key in php?

I have the following array For example the array (0) in data tiene {3:1.30} what I want to do is fill in the positions (0,1,2) with the value of 0. It is say that it is in%% data_of%. For example the array (1) in {0:0,1:0,...
asked by 24.08.2018 / 20:29
3
answers

Search data by selected month php mysql

I have a table in mysql with three fields idPago value mespago. In it I have some data and I want to make a query by mespago, that when selecting the month in the datapicker I show in a table the sum of value only of those that belong to the sel...
asked by 25.02.2018 / 01:23
1
answer

Receive value Date in a modal and field date

I continue with the editions of registers on manners. Well, I find that when I pass the data to the modal I receive everything but the date that I do not get marked the BD. Vereis I keep sending the data as always: Adding the command id t...
asked by 31.08.2018 / 07:19
2
answers

I would like to know if my query has records in MySQL PHP?

I have this code, but what I'm looking for is how to know if the num_rows is greater than 0, I need that process to be able to send a push notification in WS. $stmt= $conn->prepare("select Token from usuariosempleados;"); $stmt->e...
asked by 10.09.2018 / 21:53
2
answers

Limit session time

I need help to limit the time of inactivity in HTML PHP My code is as follows: inicio-php<br> session_start();<br> if (isset($_SESSION['usuario'])) {<br> ?> <p>Aqui va mi codigo HTML</p> inicio-php<br>...
asked by 15.08.2017 / 00:16
1
answer

Dump MySQL From Client to Server in PHP / Symfony

I have this code with which I create backups of my database $dbname = $this->getParameter('database_name'); $host = $this->getParameter("database_host"); $user = $this->getParameter("database_user"); $pass = $this->...
asked by 31.07.2017 / 19:05
1
answer

Problem with mysqli_multi_query, it does not run when doing multiconsults

The problem is that I do not know how to execute the third multiconsult, I did it this way, the first two queries if they are executed, but the third one no longer. Here the code: <?php if (isset($_POST['place_order'])) { require 'php/lib-g...
asked by 23.08.2017 / 17:19
1
answer

Revision null when sending the form

I have a form with several embeds. I have the Budget entity, which has oneToMany relation with Revision, and revision has oneToMany with Chapter, Chapter has also oneToMany with another call Requirement, but it is not necessary to inquire more s...
asked by 23.02.2016 / 14:51
2
answers

MySQL (MariaDB) saves everything in UTF8 correctly, but PHP prints it wrong. Why? [duplicate]

I'm making PHP, configured in default_charset = UTF-8 , put data brought from the MySQL database, also configured with all character variables and collation in UTF-8, within a select element, but it does not correctly encode characters...
asked by 28.04.2017 / 22:09