Building Dynamic SQL String from Associative Array
Posted: Jul 14, 2008 In PHP
It would be nice to have functions that convert associative arrays to SQL queries. Such a function will save our time from building queries. The functions take two main parameters, the name of the table and the data to be inserted in associative array. Read more
Converting Tag's Properties Into Associative Array
Posted: Jun 28, 2008 In PHP
You've fetched an HTML page and your code needs to read the properties of the some tags in it. Learn how to convert tag's properties into associative array using this code. Read more
Displaying Sequential Images with Pagination
Posted: Jun 22, 2008 In PHP
Display your sequential images and the pagination with this code snippets Read more
Getting File's Extension with Regular Expression
Posted: Jun 18, 2008 In PHP
Getting file's extension is not as easy as it looks. This is because there is no strict format for file extensions. To obtain the extension from file names, you have to use regular expression. See the following example. Read more
Starting Zend Framework
Posted: Jun 15, 2008 In PHP
After building lots of projects, I realize that I spend a lot of time just to writing repeating (and boring) code; select, insert, delete, and update rows. I have to find a way to increase my coding speed, and I choose Zend Framework. Read more
Solving Simultaneous Equations Order 3
Posted: Jun 13, 2008 In Math
I want to write javascript code to solve simultaneous equations order 3, just for fun. The challenge is to write the smallest code as possible. Check out the code and send to me your smaller code! Read more
Determinant of 3-by-3 matrices
Posted: Jun 7, 2008 In Math
The formula of the determinant of 3-by-3 matrices, with the javascript code to calculate the numbers. You'll need this to solve the simultaneous equations order 3 problems. Read more
Displaying Random Quotes
Posted: Jun 7, 2008 In PHP
Displaying random quotes is the easiest thing to do with PHP. But in case you don't know how, here it is. Read more
Solving Simultaneous Equations Order 2
Posted: Jun 6, 2008 In Math
Derive the expression for x and y in simultaneous equations order 2. Use the obtained expressions in javascript code and solve all simultaneous equations problems! Read more
Determinant of 2-by-2 matrices
Posted: Jun 5, 2008 In Math
The determinant of 2x2 matrix { {a, b}, {c, d} } would be: ad-bc. And the javascript code cannot be less than 1 line! Read more