Questions tagged as 'php'

1
answer

Problem with query to table with inner join

I have a problem I hope someone can help me because I'm going crazy and I can not solve it. I have the following code that I use to consult a table and display the results in a datatable: $joinQuery = "FROM orders INNER JOIN clients on (cl...
asked by 20.10.2017 / 21:57
3
answers

Send variables by AJAX to a PHP file [closed]

Why do not the variables from ajax to php pass? This is the script: $(document).ready(function(){ $("#editarot_btn").click(function(){ var ot_antigua = $("#ot_editar").val(); var ot_nueva = $("#nueva_ot")...
asked by 18.10.2017 / 14:35
1
answer

Maintain the value of the variable when opening a modal

I have a table in which to each row I pass some variables through a foreach. And when I give 'Delete' a modal opens, that has the first value of the table, it does not matter if I click on the delete button of the row with ID 5, that I...
asked by 18.10.2017 / 14:40
3
answers

hide the port in my URL

Well, I am writing to you because I have a problem that I can not solve and in good time it happens that I have a page with a www.mipagina.com.pe:8080 but it happens that I do not want to leave port 8080 (or any port) and only go to www.mipagina...
asked by 16.10.2017 / 18:20
1
answer

Pass view data to the controller in mvc php

I'm starting with native mvc php and I do not know how to pass the view data to the controller. what is the right way to do it?     
asked by 16.10.2017 / 15:02
1
answer

how to make a field input type password show the last 4 characters

I would like to do as they do that the fields input with type password can show the 4 characters, it is very common in the areas where you pay with a card, that you put your card and shows you the last characters or digits     
asked by 02.10.2017 / 00:26
2
answers

Change column name ID - Auth Laravel 5.5

I'm doing a login with laravel, I had a table already created. The problem is that in my table the id has another name and when trying to login it shows me this error. "Undefined index: id" This is User.php namespace App; use Illuminate...
asked by 05.10.2017 / 21:14
2
answers

Enter several values in the same input? Example: multiple mail recipients

How can I do to enter several values in the same input? For example, if I want to send an email notification to several recipients, using PHP, Javascript, etc., in the Yii framework? In the one form (not HTML) I have the following: public f...
asked by 03.10.2017 / 12:48
1
answer

Problem with POST ajax method with jqery and php

How about, I'm starting with ajax and even though I've searched, I can not find the error, I want to post a picture but it does not work, could you help me? I leave the code, thank you already. I think the error is in the ajax part, but it do...
asked by 13.10.2017 / 16:14
1
answer

Query in slow mysql

I have this query in mysql: SELECT MIN('Dc3') +1 as prox_ean_libre FROM (SELECT 'Dc3' FROM 'Test' WHERE 'Dc3' BETWEEN '".$Eanmin."' AND '".$Eanmax."') t1 WHERE not exists (select null FROM 'Test' t2 WHERE t2.'Dc3' = t1.'Dc3' + 1 AND t2.'Dc3' B...
asked by 12.10.2017 / 18:16