Questions tagged as 'php'

1
answer

Result of 2 queries fetch_assoc in an array

The idea is to obtain the values that contain the result of two queries and store them in a single array, since this is treated later and another query is made with it. I put in situation: $comprobar_reservas_inicio = $sql->ejecutar_consult...
asked by 10.10.2016 / 15:32
1
answer

Custom decode for JSON with PHP

I have a class: class NodoArbolDHTML{ var $id; var $name; var $data; var $children; public function __construct($id,$name,$resultado,$tipo){ $this->id = $id; $this->name = $name; $this->data...
asked by 18.08.2016 / 11:02
1
answer

Autoid in box value, using Mysql

Stackoverflow, I write this question because I have a system to register projects and their corresponding forms. I have: a registration form a php code (contained in the connection.php file as a function) that is responsible for savi...
asked by 07.09.2016 / 14:15
1
answer

Laravel: fill a select with values of tables with a foreign key

I am having some problems when generating select fields with data in my bd, the scenario is as follows: I have 5 tables: shopping cart: id, name, description, total_price Car_beverages: id, beverages_id, shopping_car_id (foreigner)...
asked by 06.09.2016 / 03:42
1
answer

Download laravel zip file

I have this code that generates a zip with the images I keep in the download directory, these images are previously selected ... Example for the first shipment: I select image1, image2, image3 and image4, therefore in my download directo...
asked by 13.08.2016 / 02:31
1
answer

Send html table in Mail :: send Laravel 5

Is it possible to send an html table in an email from laravel? I want to send in the body of the message a fixed text (which I already manage to do) concatenated with an html table but when you insert this table in the email it does not send...
asked by 05.08.2016 / 17:12
1
answer

Read the .xlsx file with PHPExcel

I'm trying to read the cells in my xlsx file with PHPExcel but I can not get it. require_once('Classes/PHPExcel.php'); require_once('Classes/PHPExcel/Reader/Excel2007.php'); $objReader = new PHPExcel_Reader_Excel2007(); $objReader->setRe...
asked by 04.08.2016 / 15:01
1
answer

What am I doing wrong? I have this JSON.parse error: unexpected character at line 1 column 1 of the JSON data

I'm doing an exercise with PHP and Angular JS, the complete error is this: And I vote just when I'm making a query, I use a controller.js and two php, one is read_products that serves as an intermediary and the other is products, in whi...
asked by 09.08.2016 / 17:44
3
answers

PHPMailer sends mail with the recipient's mail

I have the following code to send an email to a gmail account, it works but not quite right since I would like the name of the person that passed through the POST method and the email that enters it to appear when the email arrives. It appears a...
asked by 09.08.2016 / 19:28
1
answer

Get the values of a hidden input from a Javascript table

We suppose that I have a table like the following: <table id="parameters" width="100%" border="1"> <thead> <tr> <th>Fecha</th> <th>Cedula</th> <th>Nombre Emplea...
asked by 10.08.2016 / 20:43