Questions tagged as 'php'

2
answers

send data through ajax of a select

I have the following lines $(document).on('change', '#select_encuestas', function(event) { //alert( this.value ); //alert("sssd"); var x = document.getElementById("select_encuestas").value; //alert("...
asked by 12.03.2018 / 22:28
1
answer

Bring php variable in an xmlhttp function

I am working with html, php, javascript, postgres. I have a form that contains a combo, a button and a panel. The operation of the form basically is: choose a type of animal, press the filter button and the panel displays a table with the...
asked by 13.03.2018 / 18:09
1
answer

Laravel / Lumen - Serialize an object

Good I have 2 models in my Lumen project, one is Cars and the other Users, the relationship that I have defined is that 1 user can have N Cars User Model <?php namespace App; use Illuminate\Auth\Authenticatable; use Laravel\Lumen\Auth\...
asked by 20.02.2018 / 12:05
1
answer

performance javascript code Vs php

I have done tests with two codes that do the same, load a defined selection with the options of a request that is made bd. php code: <div id="Contenedor" style="position:absolute; height: 0px; width: 0px; opacity: 0;"> <select class=...
asked by 25.10.2017 / 09:39
2
answers

Group result by column in response of AJAX PHP

I have the following Table in the database, I want to retrieve it to generate a report: I'm recovering it with the following function statement in php: #BUSCAR CAJA Y BOLSAS public function todoReporteModel($datos, $tabla){...
asked by 22.02.2018 / 20:18
1
answer

as valid that there are no duplicate records?

I need to avoid the duplication of records in my database, specifically in my table usuario taking into account the field id_Funcionario belonging to the table. This is the form: registro.php <!DOCTYPE html> <html&...
asked by 22.03.2018 / 15:34
0
answers

How to make a table that is updated at the same time as an INSERT INTO is made to the base?

I am developing a fairly simple tool, it is for a Call Center works in the following way. It is basically a "Ranking" of best sellers, by means of a form the sales are entered into a database and on the page informe.php this table of the quer...
asked by 22.03.2018 / 18:08
1
answer

[HY093]: Invalid parameter number: parameter was not defined [closed]

In my opinion everything goes Ok, but when it makes the sentence it gives me the following error:    Fatal error: Uncaught exception 'PDOException' with message   'SQLSTATE [HY093]: Invalid parameter number: parameter was not defined'   in   ...
asked by 23.03.2018 / 12:12
2
answers

save an array of forms with checkbox

I have to save several forms at the same time and each form contains multiple checkboxes that when they are all selected, they are saved correctly but when one of them is empty, it marks an error someone helps me These are the forms you sent at...
asked by 03.03.2018 / 01:45
2
answers

problem when relating to the ORM eloquent de laravel

I am working on an application in laravel 5.5 that works with tabs (personal data) and I have the respective table I also have a table communes that is related to the tabs table is to say a one-to-one relationship a tab can have a commune, I hav...
asked by 28.02.2018 / 19:59