Archive for the 'coding' Category

Other blog…

Writing on WP blog was never a problem to me, but WP itself is now a bloated blog, CMS wannabe platform, or even the next web operating system, not to mention security issues with some outdated to never updated plugins. So, to bring back the fun of blogging, I now run a pure blogging blog […]

Simple Ajax with JQuery and PHP (very quick and dirty tutorial)

Well some dudes asked me how to learn ajax quickly without a lot of hassle by learning XHR and such. So, here is the quick way: use jquery and some simple knowledge of HTML and PHP and you’re done. First, some HTML(5): <!doctype html> <html> <head><title>Just test</title> <script type=’text/javascript’ src=’jquery.min.js’></script> </head> <body> What’s your name, […]

MySQL Custom Order

In one of my projects, I need to sort queries based on a custom pre-ordered list, e.g sort query by Indonesian month. Suppose we have a table like this: id tahun bulan jumlah 1 2011 Jan 100 2 2011 Mar 110 3 2011 Apr 120 4 2011 Jun 110 5 2011 Feb 130 6 2011 […]

Skip to toolbar