Tutorials
Valid XHTML inline script tags
Posted in:
How to include inline javascript in an XHTML document.
Enclose your script in:
<!--//--><![CDATA[//><!--
//javascript code goes here...
//-->!]]>
Arbitrary ordering in MySQL
Suppose you want to order some sql results in an arbitrary order. How would you do that?
Use ORDER BY FIELD:
SELECT * from test WHERE OrderID IN (10,5,9)
order by field(OrderID,10,5,9)
Thanks to Rudy for this one.