Questions tagged as 'php'

1
answer

add dynamic textbox from a button

I try to generate textbox to calculate a term but I can not get the texbox to go separate and in a single row I get this way I would like it to be this way <!DOCTYPE html> <html> <head> <meta charset="utf...
asked by 14.09.2018 / 16:46
0
answers

Deactivate Select option according to the answer

Hello good morning fellow of the programming somebody knows how to do so that when a person gives him in a select the option if it does not apply it is deactivated function loadQuestions () { $.post('php/cargarPreguntas.php', {}, function(d...
asked by 14.09.2018 / 16:18
1
answer

use while cycle data in a query outside the cycle

Hello everyone is a bit I understand the title sorry, if what I want is to use a data I get from a query of a while while in another query I'm doing within the same php document this is my while cycle <?php...
asked by 13.09.2018 / 21:28
1
answer

Sort registration of a MySQL query

I have the following table which I get from another database of a clock checker. idemployee fecha 1 '2018-09-10 8:56:00' 2 '2018-09-10 8:58:23' 1 '2018-09-10 14:00:23' 1 '2018-09...
asked by 22.09.2018 / 17:54
0
answers

Problem when collecting data from a php form. Very basic

I'm starting in php, and I have to do an exercise to process the data in a form. The exercise is simple, but I am jammed. I've been looking and looking for it for 4 days, but I can not find a solution. It is an agenda. I have 2 input text to...
asked by 22.09.2018 / 19:23
1
answer

CronJob Ubuntu 16.04 / php7.0

I want to run a CronJob on an Ubuntu server 16.04 with php.7.0, which does not work for me. I have the following crontab -e, which should perform or execute my script every 10 minutes, but it does not do anything. 10 * * * * /usr/bin/php7.0...
asked by 22.09.2018 / 21:48
1
answer

how can I do a SELECT * FROM WHILE with a PHP Array?

I have a query ... I have in a table called coins a field called Prefix and in another table called directories I have a field where I keep the word DEL ie What I want is to show in a select-box is, first to unfold country and city, and...
asked by 22.09.2018 / 20:15
0
answers

How to interact with the MYSQL database of another PC in PHP

Now I am trying to connect to a database that is on another PC, we are both on the same network, what happens is that this other PC presents an updated data table that is modified daily, so I need to do the queries there. we are both in the same...
asked by 19.09.2018 / 15:25
0
answers

Prevent a foreach from doing a duplicate INSERT INTO

I have the following code: <?php function entregar_pedido(){ global $db; $id_pedido = ($_GET['id']); $user = ($_GET['user']); //$lote = $_REQUEST['lote']; $lote = "1 1111 1111 1111 1111 1111111111111111 2 2222 2222 22...
asked by 22.09.2018 / 17:51
0
answers

Using $ _session with jquery ajax

I am trying to hide a php using $_SESSION but it seems that it does not pass the first file. Here I show my files: ajax.php $('.button').click(function(){ var value = $('#valor').val() $.ajax({ type: "POST",...
asked by 19.09.2018 / 14:32