Questions tagged as 'php'

1
answer

Sort sequence of numbers in database with PHP

I'm having trouble developing a system that changes a sequence of numbers. I need this sequence to arrange items in the correct order. When saving an item in the bank, it receives a number for the sequence 1, 2, 3 ... and so on. I decided to...
asked by 13.05.2016 / 15:44
1
answer

laravel Authentication 5.2

I'm trying to log in to laravel 5.2 but is not authenticating the user to the table. In the file auth.php I changed the validation table to login : 'guards' => [ 'web' => [ 'driver' => 'session',...
asked by 19.05.2016 / 04:24
1
answer

php artisan command serves by running multiple hosts

I am developing two applications, one that will be my front and another the backend, it happens that when I upload the applications to development laravel only enables one application, but it responds on both hosts. To get clearer, I'll expla...
asked by 30.05.2016 / 05:38
1
answer

Compare Coordinates

In my mysql I have a column where it contains positioning coordinates coming from a polygon, drawn in google maps api, the question is how can I compare the coordinates I have inside the column with a specified coordinate coming from a GET I'...
asked by 26.03.2016 / 20:46
2
answers

Avoiding duplicate data by applying counter for usage log

In a simple form that writes the following data:    ID, IP, Date / Time, Name, Email, State / City. When a person fills out the form, this data is recorded in the database. But if the same user is to fill out the form again, a new record...
asked by 29.01.2015 / 00:36
2
answers

Check where the POST came from

Is there any way I can limit third-party POST submission to my site? To deny all, type exists the cURL that does this like a robbery, but I wanted to inhibit, does it have? When I say third, I say come from another site that is not mine.    ...
asked by 01.04.2015 / 23:09
2
answers

Use static Closures or Closures in PHP?

As of PHP 5.4, Closures , when declared within the context of a method of the class (other than static methods), automatically inherits the funções anônimas as a reference of the class that contains it. Example: class StackOver...
asked by 27.01.2015 / 13:07
3
answers

How to compare data with accents in the database?

I am having the problem in a search I made in that user filter content by district and county, it works fine when I choose district and county without accents but when I choose a district and a county that contains accents does not give me any v...
asked by 19.02.2015 / 01:19
1
answer

how to fill the stars of a star rating?

How to fill in the stars of a "star rating". The calculation is apparently working. Giving an echo to the variable $calc results is displayed. Example, if the note is 3.3 , it must fill 3 stars and 30% of the 4 star rating. The qu...
asked by 27.10.2015 / 12:20
1
answer

dynamic url url

As I do for my url that is like this: detalhe.php?cat=1 stay type so detail / television my .htaccess : RewriteEngine On RewriteCond %{SCRIPT_FILENAME} !-d RewriteCond %{SCRIPT_FILENAME} !-f RewriteRule ^(.*)$ index.php?ur...
asked by 29.10.2015 / 13:14