You can use FIND_IN_SET to do that: SELECT * FROM tablename WHERE id IN (1,10,8,5) ORDER BY FIND_IN_SET(id, ‘1,10,8,5’)
Daily Archives: October 19, 2009
ISO 3166-1 Languages codes
http://en.wikipedia.org/wiki/ISO_3166-1 Officially assigned code elements The following is a complete ISO 3166-1 encoding list of the countries which are assigned official codes. It is listed in alphabetical order by the English short country names officially used by the ISO 3166/MA, which are all from United Nations sources.[7] For example, Macedonia is listed as “Macedonia, the …
ISO 639 Language Codes (Obsolete)
ISO 639 Language Codes (Obsolete) NOTE: This page is obsolete! Please see the Codes for the representation of names of languages maintained by the Library of Congress or the W3C Internationalization Activity for further and up-to-date information about language codes.
php DATE_RFC822
<?php echo(“Result with date():<br />”); echo(date(“l”) . “<br />”); echo(date(“l dS \of F Y h:i:s A”) . “<br />”); echo(“Oct 3,1975 was on a “.date(“l”, mktime(0,0,0,10,3,1975)).”<br />”); echo(date(DATE_RFC822) . “<br />”); echo(date(DATE_ATOM,mktime(0,0,0,10,3,1975)) . “<br /><br />”); echo(“Result with gmdate():<br />”); echo(gmdate(“l”) . “<br />”); echo(gmdate(“l dS \of F Y h:i:s A”) . “<br />”); echo(“Oct …