Tag Archive | "numbers"

MySQL : ORDER BY numbers

Saturday, May 9, 2009

8 Comments

In this article I will show you how to order MySQL records by numeric values (numbers, integers & floats) from the smallest to the largest number or the other way around using a MySQL ORDER BY query.

Continue reading...

PHP : Random string with numbers and letters

Monday, October 1, 2007

24 Comments

I thought that some of you might find it useful to learn how to generate a string with random numbers and letters. I wrote a quick function for generating a string like this. See it below : function genRandomString() {     $length = 10;     $characters = ‘0123456789abcdefghijklmnopqrstuvwxyz’;     $string = ”;         for [...]

Continue reading...