Questions tagged as 'php'

3
answers

pass hidden variables and retrieve it in another page

I have a task calendar and a "Perform" tag this is my code <section id="form"> <form class="contact_form" ACTION="prueba.php" METHOD="POST"> <ul> <li> <h2>Calen...
asked by 19.04.2018 / 15:50
2
answers

like passing an array by js to php [duplicated]

I have the following code <a style="cursor: pointer;" onclick="verMatch2(this,'<?php echo base64_encode($datosSolicitud['id']);?>','<?php print_r($datosSolicitud); ?>');"> I want to pass $datosSolicitud which is a...
asked by 20.04.2018 / 22:32
3
answers

Does not show by alert the selected item of a select

I have a select that I load with the data that I bring from my BD, I have a javascritp function to which I send as a parameter the element of the list that I select, but then in the function I make an alert to show what arrives but it always arr...
asked by 22.05.2018 / 15:07
3
answers

PHP timestamp, the variables have the same value at the end

The idea is to calculate the seconds that have passed since you entered the page until the button was clicked, using PHP. The thing is, I want to do this process on the same page, I had previously tried sending the request to a separate page,...
asked by 08.05.2018 / 07:47
3
answers

Why do not you bring me the data of the sql query?

Good afternoon I'm doing a query on mysql given a date bring me the year and month and the reference for that month, the query is good but it's not bringing me anything, someone to help me find the error. <?php //comprobamos que las fechas...
asked by 23.06.2016 / 19:09
3
answers

I can add a field that keeps 1 and 0 separated by semicolons

I have to make a sum in MySQL of a field called assistance that saves 0 and 1 depending on whether you attend or not taller personas asistencia 65 31;42;58 (idUsuario) 1;0;1;1;1...
asked by 02.08.2017 / 17:05
2
answers

How do you update a div in another div?

I have this code but it does not work for me, it does not update, I want to update a div in another div but I do not know how you can help me: <!doctype html> <html> <head> <title>Document Title</title>...
asked by 25.10.2017 / 14:43
5
answers

How can I show each client their orders from mysql?

I update again Current code: <?php require('conexion.php'); /* Variable para el control de errores*/ $arrMensaje=array(); /* OBJETO CONEXIÓN */ $mysqli = new mysqli('miservidor', 'usuario', 'password', 'ndb', 'puerto'); /*...
asked by 02.11.2017 / 12:52
1
answer

PHP Add Element Array

$conexion2 = mysqli_connect('localhost', 'root', '', 'ProbandoMysql'); $consulta = "SELECT * FROM persona"; if ($resultado = mysqli_query($conexion2, $consulta)) { /* obtener el array por índices */ while ($fila = mysqli_fet...
asked by 28.10.2017 / 20:42
2
answers

Is it possible to pass with PHP via GET / POST a token with AJAX and json without doing an echo?

I have a file called token.php that generates a token: token.php echo json_encode(Braintree_ClientToken::generate()); And I have a file that takes that token with AJAX and executes later codes: $.ajax ({ url: "token", type: "...
asked by 27.10.2017 / 18:06