bradless


Member since 01/24/2010

10 snippets

3890 profile views

0 Comment(s) Posted

View their favorites

Profile

Achievement

first submission:submitting first snipplet

bradless's Recent Snippets



« Prev 1 Next »
I use the following code to prevent a user from getting a "webpage expired" message when hitting the back button on a page where the search results are also on the page with the form.
0 901 posted 13 years ago by bradless
This will force a page break where this class appears.
0 792 posted 14 years ago by bradless
I recently did an upgrade using apt-get update / upgrade and one of the packages didn't fair so well so I needed to roll it back.
0 938 posted 14 years ago by bradless
This will convert dates from MM-DD-YYYY to YYYY-MM-DD (iso format)
1 1124 posted 14 years ago by bradless
This set of headers works for me when I output file data from the database for the user to save or open.
0 1285 posted 14 years ago by bradless
0 873 posted 14 years ago by bradless
I use something similar to the example to get the difference between statuses in a status log table that I have. It comes in handy when determining the number of days between status changes. This works in MySQL 5.0.
0 1000 posted 14 years ago by bradless
This is useful for escaping multiple values in a POST array.
0 826 posted 14 years ago by bradless
0 834 posted 14 years ago by bradless
« Prev 1 Next »