MySQL Query to get radius of longitude and latitude

By |2014-01-05T10:22:20+00:00March 8th, 2012|Code, MySQL|

Lately I have been doing a lot of work with longitude and latitude references, of which I needed to search my Database for points of interest surrounding a particular reference. At first it was quite difficult, as I have never done something to that extreme query wise, and I couldn’t find something via google or [...]

PHP Debug Array or JSON object easily

By |2014-01-05T10:22:43+00:00March 8th, 2012|Code, PHP|

As a engineer I work with Arrays of Data, day in and day out. Whether its building them out or pulling them in from somewhere. More often than I’d like to admit something gets lost in translation and I have to see whats going on. Now most people will just simply do a quick debug [...]

PHP Validate Email Address

By |2014-01-05T10:23:09+00:00March 8th, 2012|Code, PHP|

If you have ever needed to validate an email address to see if the format is good then heres a nice function that does that and more up to and including checking the DNS of the domain of the email address to see if its actually a real domain. Though a lot of people will [...]

PHP Strong Password

By |2014-01-05T10:23:15+00:00March 8th, 2012|Code, PHP|

If you want to prompt your users to create password that is a certain length more or less, that is also strong by today’s definition then here is a good example. This can be elaborated on even more but for common use in most practices this is more than enough. You can comment out like [...]

PHP Verify a Dollar Amount

By |2014-01-05T10:23:29+00:00March 8th, 2012|Code, PHP|

Just a simple function to see if an input numeric value is actually a US Dollar (USD) format\r\nExample:\r\nTwo Dollar Amounts provided to the script.. 1502.38 and 10O.00\r\n\r\nGood: 1,502.38\r\nBad: 10O.00 came back false. \r\n […]

PHP Validate Credit Card format

By |2014-01-05T10:23:51+00:00March 8th, 2012|Code, PHP|

Are you in a bind trying to figure out if that user input credit card number is valid as far as format goes. Not just length but the actual combination of numbers as well? Well then here is a quickie solution. […]

PHP Unix TimeStamp to mySQL DATETIME

By |2012-03-08T15:50:18+00:00March 8th, 2012|Code, PHP|

\r\nSometimes you jut want to have a ready need to take a recalculated timestamp from a past/future date and store it in your DB this little function helps achieve that, I notice a lot of people especially newer coders who have a passion for time() timestamps as they are in a sense easier to work [...]