Tag Archive | "numbers"

MySQL : ORDER BY numbers

Saturday, May 9, 2009

12 Comments

ShareIn 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

36 Comments

ShareI thought that some of you might find it useful to learn how to generate a random string or a random number with PHP. I wrote a quick function to use PHP to generate random. See it below : function genRandomString() {     $length = 10;     $characters = ’0123456789abcdefghijklmnopqrstuvwxyz’;     $string [...]

Continue reading...