Questions tagged as 'php'

2
answers

Alert when sending message

It happens that I am making a small contact form for my site, I have almost finished everything, however I want that when you press the send button instead of sending me to another page, just show an alert saying that the message already sent....
asked by 08.05.2018 / 09:55
1
answer

Delete documents automatically

currently I have a doubt, I have a small server which I upload documents using a form, this is uploaded, is the record of the time which has been uploaded and when it should be deleted, I would like to know if there is any simple way to delete t...
asked by 09.05.2018 / 16:30
1
answer

Modify variable in a PHP Session

I have this in a PHP file <?php session_start(); ?> <?php $inscripcioncerrada = "inscripcioncerrada.php" ?> <?php $inscripcionabierta = "inscripcionabierta.php" ?> <?php $_SESSION['estadoInscripcion'] = $inscripcionce...
asked by 09.05.2018 / 15:49
1
answer

Assign variable php as attribute id of a div tag

I want to generate a alert by giving click to each of the numbers in the table that is generated with the for . The alert works, but I want it to be the same number in the box that I click on. In this case the error is...
asked by 21.05.2018 / 20:20
2
answers

Fix database and php security problem

I am new here and I have a problem with my page, it turns out that it has user registration, session and administrator, if I enter with my admin account, I can delete or edit users, the problem is that, when entering admin, it appears a section...
asked by 20.05.2018 / 18:02
1
answer

Show query in table

I have my functional sql query. If I print it with print_r it gives me all the information I need, which are only 5 records with 3 data: Array ( [0] => stdClass Object ( [fecha_del_deposito] => 2018-05-08 [importe] => 60 [tipo_...
asked by 10.05.2018 / 21:28
1
answer

What do you recommend to do this type of nested selects? [closed]

I'm designing a pretty complex form, with enough sql queries inside. I need to create many nested selects. The case, I currently use "onchange .. this form submit" .. To send by POST the information from one to another. The case, that I...
asked by 11.05.2018 / 16:55
2
answers

Error Call to a member function with () on string Laravel

At the time of executing the next destroy function, I get an error regarding the function with de laravel, they could help me. function destroy($id,$route='none' ){ $destroy = User::find($id); $destroy->delete(); if($route == 'e...
asked by 05.05.2018 / 17:25
1
answer

Error traversing a JSON

I am trying to run a json which I previously obtained from php. But when I try to run it to show it, it sends me this error in the console.   I'm new to javascript and ajax, my goal is that json, is an array of a query made in mysql, when I...
asked by 05.05.2018 / 11:12
2
answers

Someone knows why the variables that I define in VUE.js appear in this way

when reloading my application I get the variables as indicated by the image {{variable}}, and then I get the normal information, in my opinion it looks ugly is that normal? thanks     
asked by 16.05.2018 / 03:15