Questions tagged as 'php'

3
answers

I can not download a pdf file on top of the php root

Hi everyone, I'm trying to download a pdf using php but I get the following error: Warning: Cannot modify header information - headers already sent by (output started at /home/u232864974/public_html/partials/headers.php:115) in /home/u23286497...
asked by 08.11.2017 / 16:48
1
answer

Log in to php using $ _SESSION [closed]

Could someone put a simple code on how to use the global variable $ _SESSION? The problem is that when logging in, I do not know how to save the user in the global variable $ _SESSION and how to use it later in the other pages.     
asked by 12.11.2017 / 13:35
2
answers

Fill fields from a Select with a database

Greetings, I'm doing an Autocomplete with PHP , Ajax and JQuery populated by a database in SQL that constantly changes of registers and with the options of that Select I have to fill several text fields of a form that may or may not be mo...
asked by 13.11.2017 / 19:30
2
answers

How to traverse an array within another indexed array

I try to save records of indexed buildings in my array since I can register 1 or more buildings in a single form, for each building I want to store name_building, number_calls, and prefix_calls. My code is as follows $edificios = array();...
asked by 27.10.2017 / 20:46
1
answer

Load select element with ajax

I would like to make a query and collect it both in a text box and in a select. I can capture the query in a text box, but not in the select. Index.php <script> function cargar_energia(){ //var n = document.getElementById("nombre")...
asked by 26.10.2017 / 14:40
1
answer

How to keep selected a nested combobox data when reloading the page?

Hello everyone, I would like to know if it is possible to keep a data of a nested combobox selected and that at the same time this data that is selected to send the other data automatically, it is necessary to say that I already have the nested...
asked by 26.10.2017 / 22:06
1
answer

Problem with datetimepicker in a sun

Good morning friends I have the following problem with a datetimepicker in a dynamic form that increases, the problem is that the first row is displayed on the datetimepicker per if I give the button more to clone the row above the second dat...
asked by 22.10.2017 / 14:13
2
answers

How to add more positions in zero to an array [duplicated]

friends I have this result array(3) { [0]=> array(1) { ["dato"]=> string(7) "3522.40" } [1]=> array(1) { ["dato"]=> string(7) "6748.20" } [2]=> array(1) { ["dato"]=> string(7) "7000.0...
asked by 24.10.2017 / 21:22
1
answer

error timezone symfony on mac [closed]

I want to learn symfony framework. Use the documentation commands to install it on my mac and install version 2.8.28 correctly. But when I want to run the server I get this error: [Symfony\Component\Debug\Exception\ContextErrorException]...
asked by 24.10.2017 / 16:31
1
answer

Get data with POST in the same php page

Good, I would like to obtain data in the same php page, in a login, the problem is that when I enter the values in my login, I save them by POST, but it seems that it always saves me NULL. .boxlogin{ border-radius:4px; box-shad...
asked by 25.10.2017 / 05:31