Questions tagged as 'php'

1
answer

Create a table from a foreach loop with order

I need to create a table where the week numbers are the columns and the employees are the first column, like this: But from an array in php like the following: /** * [$key Año] * [$key2 Semana] * [$key3 Empleado]...
asked by 02.10.2018 / 17:30
1
answer

Correctly display characters encoded in style \ xe9 [duplicated]

I have a database in .csv format that I have exported to my MySQL database and whose records I want to visualize in a web using PHP. The problem is that some of the characters are encoded in the .csv file, for example \xe9 that corre...
asked by 29.12.2017 / 01:31
2
answers

How to get the name of an element [1], element [2] with jquery

I have selectors who have a name: <select name="selector[]" id="selector"> <option value="1">Valor 1</option> <option value="2">Valor 2</option> </select> <select name="selector[]" id="selector">...
asked by 19.03.2018 / 21:07
2
answers

Consultation of Inner Join to the same table

in advance thanks:) I have a small question, I must take the data from an id that is in the table using phalcon with mvc. The question is this, my table is this: |-----------|-----------|----------|--------------|----------------| | idus...
asked by 22.03.2018 / 22:43
2
answers

How to get the text of an HTML tag with simple_html_dom.php

I'm trying to get the text that contains certain tags within the HTML on a page, I'm using html_simple_dom.php that I thought was good for this. Without more I leave an example of my problem. This is the function in php <?php requir...
asked by 09.01.2018 / 04:34
1
answer

Laravel delete in CRUD

I am creating a CRUD of products. In the index I have the grid with the registers. In each record there are two buttons (edit and delete). Editing works fine for me, but not editing. I need to press that button to show me a view (delete.blade.ph...
asked by 15.02.2018 / 12:40
1
answer

Error fetch_assoc () on boolean

I need to be able to modify a record using a table, but it happens that when I want to execute the action of the button, it sends me an error. I had previously done a test with a table of 15 records or so and it did work, but when I tried to...
asked by 08.02.2018 / 06:33
1
answer

Show results of a query to a BBDD

Good, I have this PHP code, with a database with the table "images" and with the fields: "id", "category" and "url". When I try to select all the images in a category, it only returns the first image of that category with the following notificat...
asked by 16.12.2017 / 12:53
1
answer

Display an alert when inserting a duplicate product in the database

I have a question, I want to add a product to a database and when this product exists there is an alert that says "this product is already in the database", a question that I have achieved quite well except that when this warning comes out, is r...
asked by 04.04.2018 / 23:00
2
answers

Avoid a concurrent insert

I have a problem on my website. It turns out that I have a packs table which has a availability column. A pack will be available as long as the availability is > 0 . A user can reserve an available pack, upon payment with Stripe. This...
asked by 03.04.2018 / 23:09