<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>NewSourceMedia Blog &#187; more</title>
	<atom:link href="http://newsourcemedia.com/blog/tag/more/feed/" rel="self" type="application/rss+xml" />
	<link>http://newsourcemedia.com/blog</link>
	<description>Focused on Interactive Design, Development and Marketing</description>
	<lastBuildDate>Mon, 07 May 2012 01:26:28 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>PHP MySQL Order by Two Columns</title>
		<link>http://newsourcemedia.com/blog/php-mysql-order-by-two-columns/</link>
		<comments>http://newsourcemedia.com/blog/php-mysql-order-by-two-columns/#comments</comments>
		<pubDate>Tue, 30 Nov 1999 06:00:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[MySQL / Database]]></category>
		<category><![CDATA[column]]></category>
		<category><![CDATA[keyword]]></category>
		<category><![CDATA[more]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[order]]></category>
		<category><![CDATA[order by]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[rows]]></category>
		<category><![CDATA[sort]]></category>
		<category><![CDATA[two]]></category>

		<guid isPermaLink="false">http://newsourcemedia.com/blog/1969/12/31/php-mysql-order-by-two-columns/</guid>
		<description><![CDATA[Here's how to order your data by two or more columns using PHP and MySQL Order by Two Columns Here's how to order by more than one column. When ordering by more than one column, the second column is only &#8230; <a href="http://newsourcemedia.com/blog/php-mysql-order-by-two-columns/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[Here's how to order your data by two or more columns using PHP and MySQL<span id="more-166"></span>
<h3>Order by Two Columns</h3>
Here's how to order by more than one column. When ordering by more than   one column, the second column is only used if the values are identical with   the onces in the first column:

<code>SELECT column_name(s)
FROM table_name
ORDER BY column_name1, column_name2</code>
<h3>Sort the display by Ascending or Descending Order</h3>
If you use the ORDER BY keyword, the sort-order of the recordset is ascending   by default (1 before 9 and "a" before "p").

Use the DESC keyword to specify a descending sort-order (9 before 1 and "p" before "a"):

<code>SELECT column_name(s)
FROM table_name
ORDER BY column_name DESC</code>]]></content:encoded>
			<wfw:commentRss>http://newsourcemedia.com/blog/php-mysql-order-by-two-columns/feed/</wfw:commentRss>
		<slash:comments>14</slash:comments>
		</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->
