Bradino - bradino.com - BRADINO

Latest News:

Pass Extra Parameters to JavaScript Callback Function 11 Oct 2009 | 08:49 am

Here is a simple example of a function that takes a callback function as a parameter. If you wanted to pass extra variables to the callback function, you can do it like this.

URL Multiple Query Parameters Encoded with HTML Entities 12 Sep 2009 | 09:10 am

I came across a situation where a URL with multiple query parameters was encoded using htmlentities() and PHP was not recognizing the query parameters using $_GET. A common case for encoding urls usin...

PHP Screen Scraping Class 31 Jul 2009 | 01:04 pm

After some positive feedback I have decided to continue to develop the PHP Screen Scraping class. This post will server as the permanent home for the class. Download PHP Screen Scraping Class Update...

CakePHP Missing Database Table Error 25 Jul 2009 | 01:07 pm

I am baking a new project management application at work and added a couple new tables to the database today. When I went into the console to bake the new models, they were not in the list… php /path...

MySQL Query Cache 21 Jul 2009 | 12:20 pm

According to MySQL.com the query cache stores the text of a SELECT statement together with the corresponding result that was sent to the client. If an identical statement is received later, the server...

Count Email Address Domains 15 Jul 2009 | 01:03 pm

A quick tidbit I came up with today to count email addresses in a mysql database table grouping them by domain. So say for example you have a large list of subscribers and you want to see the breakdow...

Screen Scraping Twitter 29 Mar 2009 | 04:20 am

I got an email today asking for help to scrape Twitter. In particular, to be able to login. So I am going to show everyone, NOT to encourage anyone to violate Twitters terms of use but as an education...

Zipcodes in CSV Generation 17 Mar 2009 | 09:30 am

When exporting to CSV format, then opening in a spreadsheet program like Excel zipcodes that start with a zero or zeroes have the preceding zeros stripped off. Obviously it is because the spreadsheet ...

Calculate Age using Date Field 19 Feb 2009 | 01:45 pm

So if you have a database table that has DOB borthdays as date fields, this is an easy way to query that table based on age parameters. The following examples assume that the date of birth date field ...

Replace Listmenu with Textfield 19 Feb 2009 | 01:36 pm

Say you have a dropdown form field where you ask the user how they heard about you. You have numerous options and also an other field where if they selected other, then they enter the value in a text ...

Recently parsed news:

Recent searches: