Questions tagged as 'php'

2
answers

Query to get quarterly data

Very good, I have a query that is generated by making a selection by means of a <select> . In the <select> you have to choose the month and the year, and send the variables to a query where you extract the data for that...
asked by 08.06.2018 / 10:25
1
answer

Query all of a user's sales with totals

I am developing with PHP-PDO with MySQL and I have three tables: User (Seller) Sale Detail Sale How can I make a query in MySQL that shows me per user the detail of all the sales made (product, quantity, price, subtotal, *) plus the...
asked by 09.06.2018 / 03:37
1
answer

how to make a mysqli function for a search engine?

I want to make a contact search engine of those who are your friends only and not others as well as whatsapp does but I do not know how to make a SQL table to make the query.    I passed this code but it does not work for me example: $SQL_...
asked by 22.06.2018 / 23:32
1
answer

In laravel Is it necessary that the tables have the "created_at" field as the "updated_at" field?

Is there any way I can create those two fields from my console and how can I do it? I must clarify that the database was already created for me, now I have to implement it in this framework     
asked by 24.06.2018 / 19:24
2
answers

Extract data from an array

I have the following code: if (!$curld = curl_init($dominio)) { echo "Could not initialize cURL session.\n"; exit; } curl_setopt($curld, CURLOPT_RETURNTRANSFER, true); curl_exec($curld); echo "<pre>"; print_r(curl_getinfo($curld)...
asked by 22.06.2018 / 18:01
2
answers

Update with Inner join

I am trying to update a "group" attribute of my process table, I do the relationship with the subprocess table which has as reference the idProcess of the process table, but it marks me an error when executing the query. UPDATE P set P.grupo="...
asked by 27.05.2018 / 02:12
4
answers

Error sending variable from ajax to php via post, help please

Well here is the code: $("#ajax_formulario").submit(function () { $.post("ajax.php", {nombre:$(".ajax_nombre").val(), apellido:$(".apellido_ajax").val(), edad:$(".edad_ajax").val() }, function () { alert("Exitos...
asked by 27.05.2018 / 01:07
1
answer

Send data by POST from a DataTable

I am using a DataTable created dynamically from a DB in which I capture the event onclick of which row was selected and I collect your data, now what I need is that I redirect to another php file (I want to send them by POST) in which mus...
asked by 23.07.2018 / 23:23
1
answer

Problem when extracting data

I have Menu (food) within those menus I have submenus (first, second, etc) and within submenus I have dishes. The submenus I generate them perfect and as soon as the dishes always fill them with the last dishes of the last submenu id with whi...
asked by 16.05.2018 / 15:54
1
answer

How can I autollen 2 inputs depending on what I select in a dropdown?

I have a dropdwon which shows as options the fields of a table in mysql, up to here everything is fine. I also have 2 inputs which I want to fill according to what is chosen in the dropdown. The information with which I want these inputs to be f...
asked by 16.05.2018 / 22:38