Questions tagged as 'php'

2
answers

Submission of html form data

Good morning. I have a form that collects the data that is inserted and sent to a page in php in charge of making the shipment. The whole process is done well, except for the field referring to a select, whose field is not sent, even in white. I...
asked by 09.05.2017 / 11:55
2
answers

How to add 2 columns per calendar in MySQL

I have the following table: I want to do the sum of sueldo1 and sueldo 2 , use SUM(); but that makes me add the two columns but in all the calendars. Is there any way to do the sum of both columns but by calendar?...
asked by 15.05.2017 / 21:32
2
answers

how to make a horizontal calendar in a range of dates in php?

I need to make a calendar of events but be horizontal, I've seen several tutorials to make a calendar of events but only per month and I need one that is several months that's why I need the calendar to be horizontal like this I have cr...
asked by 03.07.2017 / 09:19
1
answer

I want to change the status of all records according to the current date automatically

I want to change the status of all the records according to the current date automatically, but the following code updates all the data according to the first record include('php/connection.php'); $hoy = date('Y-m-d'); $sql = "select * from...
asked by 25.04.2017 / 19:08
2
answers

does not erase cookies in chrome PHP

It turns out that I have a file salir.php that closes the sessions of the user and also in case the user has marked the option "remember me" the cookies are also deleted .. but in chrome it does not erase the cookies to me then it never leaves...
asked by 11.05.2017 / 07:10
2
answers

checkbox check and "descheckeo" [duplicated]

I have a form with three select , that I get certain data from the database and when generating them, a graph with the detail is displayed according to the select selected of year from 2015 for example to 2017, and after of select...
asked by 17.05.2017 / 16:42
1
answer

PHP does not receive parameters after submit

I'm making a relatively simple form in which I use the plugin multiple-select . This is the form: <form id="frmDatos" class="form-horizontal" action="txartelak.php" method="post"> <input type="submit" class="btn" id="sal...
asked by 04.05.2017 / 15:35
1
answer

Use field names in a query prepared with PDO

I connect with this php: class Conexion extends PDO { private $tipo_de_base = 'mysql'; private $host = 'localhost'; private $nombre_de_base = 'basededatos'; private $usuario = 'user'; private $contrasena = 'user'; pu...
asked by 20.07.2017 / 19:42
1
answer

Pass fix value to query

I am trying to pass a value of my fix to my query but at the moment of doing it it says to me:    Array to string conversion My fix comes from a function in a file called functions.php It is the first value of my array that I wa...
asked by 22.07.2017 / 19:24
1
answer

Activate and deactivate concept using PHP PDO

I am a newbie and I can take time to learn PDO php from 0, Well this is the concept to activate and deactivate the category. Can someone help me with this? I would like to update the status of the category, the status should be 0 (deactivate) or...
asked by 15.03.2017 / 16:53