Archive for category Programming
Build dropdown from Mysql SET or ENUM fields
Posted by Imran in Mysql, PHP, Programming on September 5th, 2009
We need to populate dropdown fields from Mysql SET or ENUM fields pretty often. So here is how I use to do it.
Lets say ‘test’ is a table that has a field, ‘agree’ of type ‘SET’ having values ‘Yes’ and ‘No’. On the front end of my application I want to show a dropdown/select field [...]
Practice writing clean and simple code
Posted by Imran in Programming on June 1st, 2009
I remember the 1st year school days in SUST when I started writing code in pascal. A simple prime number generation program lasted in 100 lines script , I added and I commented off, and finally when the script is ready, I used to find 70% code that are commented off. That was a [...]
