brownrl


Member since 06/19/2009

Name: Robert Brown

brownrl

Location: Belgium

Website: http://www.itsgotto.be

14 snippets

5415 profile views

9 Comment(s) Posted

View their favorites

Profile

Achievement

first submission:submitting first snipplet

brownrl's Recent SnippetsTagged php



« Prev 1 Next »
This is damn crazy! sQlite does not have all the trig functions need to do distances. So here is how you load that into sQlite on the fly.
0 968 posted 9 years ago by brownrl
This will print out a variable to a <pre>
0 819 posted 11 years ago by brownrl
Generate a generic file comment
0 881 posted 11 years ago by brownrl
Generate a generic function comment block
0 733 posted 11 years ago by brownrl
This is a quick sublime snippet to quickly setup a DB table for pagination. Ideally from here you will be into a smarty template.
0 733 posted 11 years ago by brownrl
When using PDO with sQlite ->rowCount() doesn't work. the recommendation is to do a pre query to get the number. Thus, I created this snippet to help things along.
0 805 posted 11 years ago by brownrl
This is a skeleton mock up for showing a database table in a basic datagrid with sorting and pagination.
0 1133 posted 13 years ago by brownrl
Some times you need to generate a code for a field in a db and that code can't be repeated either... Yes, I know that if two people submit their data at almost the exact same time that it could be possible that they have the same code. OMG OMG OMG...
0 769 posted 13 years ago by brownrl
Here is a little bit of code I use from time to time to make a generic some what safe date selector for forms. I wanted something easy, small, and not relying on images, jquery, libraries, etc... Most importantly I wanted the date that was selected t...
0 736 posted 14 years ago by brownrl
This is one of my favs to use and reuse. Essentially, we make a select box on what is in the table filled values/labels. Download the ISO countries list to make a country table and Bam! with this function you got a country select box... Also grea...
1 723 posted 15 years ago by brownrl
Quick little function to give you a select box for numbers ranging from min to max. Perfect for birthday date selectors.
0 706 posted 15 years ago by brownrl
This is a slightly hard core email check. I work for clients that want real email addresses. They pay quite a bit of money so yes, I am going to give what they want...
3 858 posted 15 years ago by brownrl
Face it! Whenever you make a website/app you always need to make XLS export for the simple people. I mean heaven to betsy if they have to take a csv file, or use phpMyAdmin. So Here are 3 little functions and a sample skeleton that I use fro...
6 1301 posted 15 years ago by brownrl
This is a good way to validate form input from PHP, in essence this could be a blue print for your forms.
5 963 posted 15 years ago by brownrl
« Prev 1 Next »