Questions tagged as 'php'

1
answer

Get variables from a row and put them in php variables

When obtaining the value of the row that the user is located, I want it to store in the variable $ _SESSION the other fields that have been set, like the email. Here the code: <?php $usuario = $_POST['username']; $clave = $_POST['passwo...
asked by 18.03.2018 / 21:08
2
answers

Sort an array descending in PHP [closed]

Do I need to show that on the screen with a array with PHP, any suggestions? <?php $number= array("1","2","3","4","5","6","7","8","9","10"); arsort($number); for($x = 0; $x < count($number); $x++) { echo $number[$x]; ec...
asked by 27.02.2018 / 17:33
2
answers

Detect the value change of a php variable

I have a question: How is it possible to know when a variable in php changes value in a while cycle? I have a query that I make to a BD in which it brings me several data, among them it brings me the number of days elapsed. Then I throw...
asked by 28.02.2018 / 15:45
1
answer

Can I simulate the use of the "print screen" key?

I would like to know if I can simulate the use of the print screen key (the one we press to take screenshots) with the browser, either with JavaScript or PHP. I have already used the html2canvas plugin, but the screenshot is distorted. This i...
asked by 13.02.2018 / 19:59
0
answers

Update with Check Box with Fatal Error - PHP + MySQL

Hello, I am trying to update in the "operator" field for each request in which the check box is pressed. With this code I get this error (Fatal error: Call to a member function update () on null). Can someone help me? global $wpdb; $solicitud...
asked by 15.02.2018 / 00:16
1
answer

Problem to update several records with php and mysql combobox

Hello, this is the first time that I have programmed in php and I have a problem that I have not been able to solve. I can not get the data in a mysql column updated using a combobox with 2 elements. The page is like this : and this i...
asked by 15.02.2018 / 14:48
1
answer

PHP file to be executed in background LINUX

I need to put a PHP file on my server that works in the background and not have to start it every time you start a user session and / or wait for it to expire and have to use it again. The file is a socket developed in PHP so that it can list...
asked by 15.02.2018 / 22:17
1
answer

Do not insert all the values selected by checkbox

<?php require 'connect_db.php'; $turno = $_POST['idctg_turno']; $entrada = $_POST['hr_entrada']; $salida = $_POST['hr_salida']; $dia = isset($_POST['idctg_dia']) ? $_POST['idctg_dia'] : null; $arraydia = null; $...
asked by 22.02.2018 / 07:57
1
answer

Generate a report in PDF in PHP AND MYSQL

Good evening I make a report in PDF with PHP and MYSQL of what my table of my BD contains are: * (main table) "worker" with the attributes control_id, name, ap_parter, ap_maternal, NSS, CURP, RFC and with the foreign keys id_puesto, id_area,...
asked by 15.02.2018 / 05:11
0
answers

How to display the coordinates saved in the Mysql database in Google Maps? [closed]

How can I show the coordinates I have stored in the Mysql database and display them in Google maps using PHP? or how should it be done?     
asked by 22.02.2018 / 19:59