Archive for category Programming

Build dropdown from Mysql SET or ENUM fields






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 […]

,

12 Comments

Practice writing clean and simple code






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 time […]

1 Comment