Questions tagged as 'php'

1
answer

Session_Start error

I was copying to a PC that I have, an old system import your database and I went to try it (this is called base_projecto ) it happened that the database had another name different from the one I had put it, change it in connection. (He told me...
asked by 17.02.2017 / 19:13
1
answer

Compare array in php

I have these two arrays that I need to compare to erase the differences. Array1 which is equivalent to everything in mysql Array( [0] => Array ( [id] => 133 [que] => Codigo [idcosa] =...
asked by 09.01.2017 / 21:53
2
answers

query prepared in php does not work (no error)

I'm trying to execute this query but it does not give me any errors but it does not work for me, it simply does not order anything: $sql = 'SELECT * FROM productos ORDER BY :orden'; $stmt = $this->BD->prepare($sql); $params = array(':ord...
asked by 15.11.2016 / 15:17
2
answers

Ajax nested requests

I need to make 2 requests $.ajax() nested, where the second depends on the delivered value of the first ... in other words the result of the first enters a loop and for each record found makes a new request . Something like this: functi...
asked by 29.10.2016 / 12:49
1
answer

HTML buttons do not work - Javascript - AJAX

I want that when selecting an image of the STATE column of a table I change the image / icon depending on what you choose in the modal created in Bootstrap with two buttons / Button1 or Button2 /. If your initial state collected from the databas...
asked by 18.11.2016 / 10:36
3
answers

Apply style to Active or Inactive state with php in Laravel

I happen to have my template index.blade.php in which I post the list of articles, I would like the status Inactive to appear red, I do not have any idea of how to do it I am a newbie in laravel and php, in fact I was inclined by this framew...
asked by 26.10.2016 / 23:59
2
answers

Autocomplete [jquery] does not show data

I have the following problem, I have two fields to autocomplete (group name and number of the same) and the logical part works correctly but it does not show me the coincidences, as you can see the values appear in the console, but not in the pa...
asked by 15.11.2016 / 20:52
1
answer

How to capture a variable of a while to delete a specific data

Hi, thanks, first of all, I'm new to programming and I've really searched and searched and I have not gotten information about it. This is what happens, I need to delete a field from the database and a confirmation appears but I can not capture...
asked by 24.11.2016 / 00:47
1
answer

Problems PHP form

I have a form on the same page, and the problem I have is the following if I update to keep sending me the email constantly, if I make a header and redirecciono miss the message sent successfully. I need some solution. And another problem tha...
asked by 09.11.2016 / 18:47
2
answers

Show Java Script without click

I have a code in which I show a content, every time I click on a button. I want to modify the code so that only with a click shows all the separated content for a few seconds. What do I have to modify of the JS? document.addEventL...
asked by 06.02.2017 / 14:47