Questions tagged as 'php'

2
answers

How to dump an array in a multiple select

I have a form that has a multiple select that is loaded with data from a database. In this select, the user selects several "interests". In the process of saving the data, I keep the array in the database with this format: ["17","12","11","13"...
asked by 29.07.2017 / 23:41
1
answer

enter value of the database in a textarea

My mistake is: I have a textarea, which I fill in, I give it to send. In the database is recorded as follows: And everything is correct. The problem comes when I make the call to that field within a textarea. Showing that: Fo...
asked by 13.06.2017 / 12:04
1
answer

Error PHP Variable autoincrement [closed]

Good morning, I have a problem with the following code php , it gives me error on line 47, specifically in: $arr_vote[$reply]++; Any idea of the reason? The error message of the page is as follows:    Parse error: syntax error, unexp...
asked by 08.06.2017 / 13:52
2
answers

Read Json in a for a php query

I am making a request getjson to a table in MySQL by means of PHP . What I need to do is to be able to read the answer with for in javascript to get some data. I have this query in PHP : <?php...
asked by 08.06.2017 / 18:02
2
answers

Notifications in PHP [closed]

How about, I'm trying to implement a system of notifications in my web application, I just do not know how to start, I've been googling, waiting to find an answer. I have a table in MySQL that has the following fields: id (PK) du_id...
asked by 04.06.2017 / 21:39
2
answers

Error: "You have an error in your SQL syntax"

The error that returns to me is: A Database Error Occurred Error Number: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '0) VALUES ('admin@hotmail...
asked by 04.06.2017 / 01:29
1
answer

Retrieve variable sent in JSON in datatables

Dear programmers, I come to you based on the following problem. I work on a system and I'm using Datatables. So far I have not had major problems, but now I'm with one that is pulling green hairs. I have in my mysql Database, a table called labo...
asked by 11.06.2017 / 01:32
2
answers

Save all items from the cart

I am looking for help for this problem that I have when I save my items that I add to the shopping cart, if I add several to the cart, it only saves me one and the price and the quantity keeps the total of everything I can do. I kept all the ids...
asked by 09.06.2017 / 19:51
2
answers

Formula to calculate php equivalency surcharge

I have to calculate the equivalence surcharge with php and I do not get the correct values. I have this code: $dcto0=$DLineasPedido["descuento"] / 100; $importe=$DLineasPedido["precio"]*$DLineasPedido["cantidad"]; $dcto0=$importe*$dcto0; $B...
asked by 10.06.2017 / 23:04
1
answer

Show Ratings according to PHP MYSQL subject

Good morning Community. I have this student report card by subject But I have tried to make the notes go horizontally according to the subject and not vertically according to the image. I have not been able to solve this concern. The code...
asked by 02.06.2017 / 15:35