Questions tagged as 'php'

1
answer

Incorrect filtering in a MYSQL Conlsulta

How about, I'm developing a system where I have a database filter. I have the database with a field called "state" where I store 4 different data that are (Pending, Active, Completed, Does not Proceed) others called "depto1" and another ca...
asked by 05.04.2017 / 02:43
1
answer

PDO error: Uncaught PDOException: SQLSTATE [HY093]: Invalid parameter

This is my code: $errors = array(); $data = array(); if ((empty($_POST['nombre']))||(ctype_space($_POST['nombre']))) $errors['nombre'] = 'Nombre (s)'; if ((empty($_POST['apellidoP']))||(ctype_space($_POST['apellidoP']))) $errors['ape...
asked by 28.04.2017 / 20:08
1
answer

Process select if count () is greater than zero

If some records meet the condition I want to show them on the screen. If no record meets the condition that shows a message. I have this code and I show the data using Smarty template. But it sends me a message that the $ matrix is not defined....
asked by 27.04.2017 / 20:43
2
answers

Error generating excel with PHPExcel

I have a generic method that is responsible for generating the excel I need, what I send to the method is the resource of a query, the method is responsible for tracing the result to generate the excel with culumnas and corresponding rows. As...
asked by 26.04.2017 / 20:07
1
answer

Upload multiple images with id from another table? [closed]

I am trying to upload multiple images when creating a new product and save those images in a table called galeria next to id of the product created. The error I have is that the id and the date are saved in the galeria...
asked by 28.04.2017 / 08:19
1
answer

form update with request in laravel 5.3

I have This form that updates the user table, but it throws this error: ERROR MESSAGE: Creating default object from empty value The Code of the Form: <h1 class="text-center text-uppercase">Formulario de Edicion</h1>...
asked by 27.02.2017 / 02:41
2
answers

how can I extract the colors of a json with foreach - while?

How can I extract the colors of this json? [{ "item1": "si", "item2": "no", "item3": [ { "color": "azul", "tipo": "circulo" }, { "color": "rojo", "tipo": "triangulo" }, { "color": "verde", "tipo": "cuadrado" } ] } ] This is what I do and...
asked by 25.02.2017 / 15:37
2
answers

How to give value to a data taken from a serializaArray and send it by AJAX?

I have a tabla called 'individuos' , it has basic data like (id, no.identificacion, nombre completo, depen_serial(INTEGER)) among others ... (to avoid any 'wrong' comment, this is how it is stipulated :: ..) depen_ser...
asked by 07.03.2017 / 15:06
3
answers

How to change my icon by clicking jquery DATATABLES?

I have a table which I have put an image as an icon (+) <--"abrir" , which when you click there throws me a child.rows showing more information, what I want is that by clicking automatically I change the image or icon for (-)...
asked by 01.03.2017 / 14:00
2
answers

Modify htaccess to get "friendly" URLs

Edit: At the moment the solutions have not worked for me. The only one that I am testing and that I see that it does access the URL is with the following code: RewriteEngine On RewriteRule ^XboxOne/([0-9]+) single.php?id=$1 This leaves...
asked by 14.03.2017 / 14:03