Questions tagged as 'php'

2
answers

push array with php keys

Good morning. I am trying to create an array with values grouped by categories, by AJAX I receive two variables one contains a string with the name of the category and the other contains an array with the values of the category for example:...
asked by 18.08.2016 / 18:26
2
answers

Problem with UTF_8

Good morning, my problem is this, Php sends me the following Warning    Warning: utf8_decode () expects parameter 1 to be string, object given in. I have already reviewed my code and I have declared the characterSet in this mode "Chara...
asked by 25.08.2016 / 18:56
2
answers

How to validate array checkbox

What a good day, someone could tell me how it can be done so that when I press the "DOWNLOAD" button if it is empty that does not redirect me to the other page and if at least there is a checkbox activated and press "DOWNLOAD DATA" if you...
asked by 24.08.2016 / 20:32
2
answers

Problem with php in vector

Good, I have a problem with php, it's a vector form <!DOCTYPE html> <html lang="es"> <head> <title>Ejercicio7.php - Vectores 2</title> </head> <body> <?php if ( isset ($_POST['vec'])); { $vecto...
asked by 16.12.2016 / 18:48
3
answers

print script tags on a div with jquery

I would like to know how to print script tags in the html with jquery     
asked by 03.08.2016 / 02:06
2
answers

Make use of json_encode for PHP image

How about, I want to use json_encode to make a json of an image obtained from the database, this I have but it does not work just send me the blank page and it does not show anything of json : <?php define('HOST','host.com');...
asked by 09.05.2016 / 21:01
2
answers

Because in php you can directly access the variables sent in an object from ajax

Does anyone know why in php you can directly access the variables sent by ajax inside an object without using the function json_decode () of php ?. This is the function that sends the value "value": function mi_funcion() { var valor = "mi_...
asked by 18.05.2016 / 00:42
2
answers

Processing of input file in PHP

Good morning. I would like to know how to make my ... <input type="file" name="ent_reg"> Be processed in PHP, or upload the file to my hosting and save the path in MySQL database.    The table in MySQL would be like this       Col...
asked by 18.05.2016 / 07:19
2
answers

Prevent data duplication in mysql

How can I avoid duplicating records in the database? What I try to do is first a registry query. Next I show the code.               /** * Representa el data de los gastos * almacenados en la base de datos */ require 'DatabaseConnection.php...
asked by 16.05.2016 / 20:16
1
answer

How to access the properties of a file in laravel 5.2?

I'm trying to access the properties of an image Most of them agree so $request->file('imagenarticulo')->getsize() that is to say with the get ahead of the property but to which they have script, I am not able to access, I am loo...
asked by 16.06.2016 / 11:40