Questions tagged as 'php'

1
answer

.htaccess WINDOWS SERVER

I have a PHP project with the following .htaccess RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php?PATH_INFO=$1 [L,QSA] But now I want to mount my project on a server Wind...
asked by 01.08.2016 / 17:46
2
answers

Ajax jquery success: funtion execute a function

success:function(data) { $('#login').val("Login"); if (data=="1") { $(location).attr('href','index.php'); } else { swal("Error", "Datos Icorrectos)", "error"); } } I want to show the fo...
asked by 03.08.2016 / 00:31
2
answers

Fix PHP date problem (CODEIGNITER)

In a controller I am sending 3 parameters to a model so that the boolean responds, and it always pulls out false, I have done tests so that the model returns what it is receiving and this is what it throws at me .. ["SE INGRESAN 10 NUEVOS PR...
asked by 01.03.2017 / 22:03
3
answers

How do I prevent a "patient" from registering twice? PHP MySQL

I am creating a small "site" for a medical friend, who needs to keep track of patients, he needs to enter the data for each client as Full Name and Address, but I want to register a new patient, check if he is already is registered, taking into...
asked by 27.02.2017 / 06:04
1
answer

I can not show and delete a record using a pop-up window

The delete function works perfectly by doing the following with the delete button. <a href="borrar.php?id=<?php echo $persona->id; ?>"><button type="button" class="btn btn-danger" onClick="<?php $identificador = $persona-&...
asked by 27.02.2017 / 08:49
1
answer

count results from the controller

With the following code I have to search in a BD = payments and if 'payment_date' is equal to today I will show it in the view. And according to what I found, I added an accountant. If you found 2 results the value of the variable $ varnum = 2....
asked by 07.09.2016 / 23:43
1
answer

Problems with passing parameters with GET in Volley [closed]

Who knows in the case of a GET request include the HasMap () of the paramenters? Well with the overwrite of getParams () it works for POST but not for GET. Any suggestions are appreciated. Greetings     
asked by 05.07.2016 / 01:30
1
answer

Laravel 5.2 and Entrust

I have a problem that I have not been able to solve and it has been several hours in the. I am using Laravel 5.2 and the component to manage Roles and Permissions Entrust . Everything is well configured, including the middleware provided by En...
asked by 03.07.2016 / 18:49
2
answers

concatenate JS variable in PHP

I have the following code and I need to be able to concatenate the variable data.id as I have it as an example in the text of the label a, since it is a second parameter that receives this route (Working with Laravel) the problem is generated by...
asked by 29.07.2016 / 02:03
2
answers

Return to Previous Page after updating

I am in an update form and have the link in the link to update, for example: view_fases.php?iddrs=2 I send it to update, and all good the problem comes when I want to finish making the changes I return to the same page with the id tha...
asked by 16.06.2016 / 20:16