<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1024403" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1024403</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/ordering-date-trip-phpearth#comment-1149297</link>
    <description> &lt;p&gt;lol thx&lt;/p&gt;
 </description>
     <pubDate>Fri, 09 Apr 2004 20:34:36 +0000</pubDate>
 <dc:creator>brady.k</dc:creator>
 <guid isPermaLink="false">comment 1149297 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/ordering-date-trip-phpearth#comment-1149294</link>
    <description> &lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&lt;span style=&quot;color: #000000&quot;&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;&amp;lt;?php&lt;br /&gt;$sql &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;mysql_query&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(\&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;SELECT TIME_FORMAT(time, &#039;%l:%i %p&#039;) AS time, activity, qual, place,&amp;nbsp; &lt;br /&gt;DATE_FORMAT(date, &#039;%m/%d/%Y&#039;) AS date FROM loyola WHERE date &amp;gt;= NOW() ORDER BY date\&quot;) &lt;br /&gt;or die(mysql_error());&lt;br /&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;That works for me as intended. All these options, eh?&lt;/p&gt;
 </description>
     <pubDate>Fri, 09 Apr 2004 20:16:53 +0000</pubDate>
 <dc:creator>Suzanne</dc:creator>
 <guid isPermaLink="false">comment 1149294 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/ordering-date-trip-phpearth#comment-1149291</link>
    <description> &lt;p&gt;ok...i&#039;ll try it with TIME_FORMAT and see how it goes&lt;/p&gt;
 </description>
     <pubDate>Fri, 09 Apr 2004 19:33:31 +0000</pubDate>
 <dc:creator>brady.k</dc:creator>
 <guid isPermaLink="false">comment 1149291 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/ordering-date-trip-phpearth#comment-1149290</link>
    <description> &lt;p&gt;I&#039;m never answering questions late at night anymore, lol... Sorry!&lt;/p&gt;
&lt;blockquote class=&quot;bb-quote-body&quot;&gt;&lt;p&gt;Quote: &lt;a href=&quot;http://dev.mysql.com/doc/mysql/en/Date_and_time_functions.html&quot; class=&quot;bb-url&quot;&gt;&lt;br /&gt;
TIME_FORMAT(time,format)&lt;br /&gt;
 This is used like the DATE_FORMAT() function, but the format string may contain only those format specifiers that handle hours, minutes, and seconds.  Other specifiers produce a NULL value or 0.  If the time value contains an hour part that is greater than 23, the %H and %k hour format specifiers produce a value larger than the usual range of 0..23. The other hour format specifiers produce the hour value modulo 12.&lt;br /&gt;
mysql&amp;gt; SELECT TIME_FORMAT(&#039;100:00:00&#039;, &#039;%H %k %h %I %l&#039;);&lt;br /&gt;
        -&amp;gt; &#039;100 100 04 04 4&#039;&lt;br /&gt;
&lt;/a&gt;&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;I don&#039;t think you can use DATE_FORMAT on just TIME.&lt;/p&gt;
 </description>
     <pubDate>Fri, 09 Apr 2004 19:19:47 +0000</pubDate>
 <dc:creator>Suzanne</dc:creator>
 <guid isPermaLink="false">comment 1149290 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/ordering-date-trip-phpearth#comment-1149276</link>
    <description> &lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&lt;span style=&quot;color: #000000&quot;&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;&amp;lt;?php&lt;br /&gt;DATE_FORMAT&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;time&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;%l:%i %p&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;) AS &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;time&lt;br /&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;That&#039;s in the original sql query...the online doc says that should transform it between AM and PM&lt;/p&gt;
 </description>
     <pubDate>Fri, 09 Apr 2004 14:37:53 +0000</pubDate>
 <dc:creator>brady.k</dc:creator>
 <guid isPermaLink="false">comment 1149276 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/ordering-date-trip-phpearth#comment-1149258</link>
    <description> &lt;p&gt;Seems like midnight and noon are being reported identically, as well.&lt;/p&gt;
&lt;p&gt;I did a quick test on my local server and didn&#039;t get the same results with your data as you&#039;re getting. How are you transforming the time to report AM and PM and such?&lt;/p&gt;
&lt;p&gt;Edit to add file of db structure. I didn&#039;t pay attention to the other fields, just the ones in question. &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/smile.png&quot; title=&quot;Smiling&quot; alt=&quot;Smiling&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;
 </description>
     <pubDate>Fri, 09 Apr 2004 03:54:59 +0000</pubDate>
 <dc:creator>Suzanne</dc:creator>
 <guid isPermaLink="false">comment 1149258 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/ordering-date-trip-phpearth#comment-1149255</link>
    <description> &lt;p&gt;no spaces, no weird characters, ...thats why I posted.  It doesn&#039;t make sense.&lt;/p&gt;
&lt;p&gt;Heres a dump of the data:&lt;/p&gt;
&lt;p&gt;id 	activity 	             qual 	      place 	time 	        date&lt;br /&gt;
1 	Loyola vs. Gilman 	Diving I 	Gilman 	16:00:00 	2004-11-30&lt;br /&gt;
2 	Loyola vs. LaSalle, Malvern 	Modified Diving 	Loyola 	12:00:00 	2004-12-04&lt;br /&gt;
3 	Loyola vs. JC, St. P &amp;amp; P 	Varsity Only, Diving II 	Loyola 	15:30:00 	2004-12-07&lt;br /&gt;
4 	Loyola vs. Curley 	Varsity Only, Diving IV 	Loyola 	15:30:00 	2004-12-14&lt;br /&gt;
5 	Loyola vs. Severn 	Diving V 	Loyola 	15:30:00 	2005-01-04&lt;br /&gt;
6 	Loyola vs. McDonough 	Diving III 	Loyola 	15:30:00 	2005-01-11&lt;br /&gt;
7 	Loyola vs. Mt. St. Joe 	Diving I 	Mt. St. Joe 	15:30:00 	2005-01-25&lt;br /&gt;
8 	National Catholics 	Qualifiers Only 	Villanova Univ. 	00:00:00 	2005-01-29&lt;br /&gt;
9 	National Catholics 	Qualifiers Only 	Villanova Univ. 	00:00:00 	2005-01-30&lt;br /&gt;
10 	Loyola vs. Calvert Hall 	Diving IV 	Calvert Hall 	15:30:00 	2005-02-08&lt;br /&gt;
11 	MIAA Championships (1) 	Pre-lims 	Loyola 	09:00:00 	2005-02-12&lt;br /&gt;
12 	MIAA Championships (2) 	Finals 	Loyola 	18:00:00 	2005-02-12&lt;br /&gt;
13 	MIAA Championships 	Diving 	Loyola 	12:00:00 	2005-02-12&lt;br /&gt;
14 	Easterns 	Qualifiers Only 	LaSalle 	00:00:00 	2005-02-25&lt;br /&gt;
15 	Easterns 	Qualifiers Only 	LaSalle 	00:00:00 	2005-02-26&lt;/p&gt;
 </description>
     <pubDate>Fri, 09 Apr 2004 03:11:11 +0000</pubDate>
 <dc:creator>brady.k</dc:creator>
 <guid isPermaLink="false">comment 1149255 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/ordering-date-trip-phpearth#comment-1149239</link>
    <description> &lt;p&gt;(sorry, I gave you information you already know on the time, I waited too long to post)&lt;/p&gt;
 </description>
     <pubDate>Fri, 09 Apr 2004 01:07:30 +0000</pubDate>
 <dc:creator>Suzanne</dc:creator>
 <guid isPermaLink="false">comment 1149239 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/ordering-date-trip-phpearth#comment-1149238</link>
    <description> &lt;p&gt;you might want to check the data types for that field and do a test on inserting the values, illegal values are probably illegal characters or wrong spacing so the time doesn&#039;t make sense.&lt;/p&gt;
&lt;blockquote class=&quot;bb-quote-body&quot;&gt;&lt;p&gt;Quote: &lt;a href=&quot;http://www.mysql.com/doc/en/TIME.html&quot; class=&quot;bb-url&quot;&gt;Illegal TIME values are converted to &#039;00:00:00&#039;.  Note that because &#039;00:00:00&#039; is itself a legal TIME value, there is no way to tell, from a value of &#039;00:00:00&#039; stored in a table, whether the original value was specified as &#039;00:00:00&#039; or whether it was illegal.&lt;/a&gt;&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;Make sure there are no spaces in the TIME fields?&lt;/p&gt;
 </description>
     <pubDate>Fri, 09 Apr 2004 01:05:16 +0000</pubDate>
 <dc:creator>Suzanne</dc:creator>
 <guid isPermaLink="false">comment 1149238 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/ordering-date-trip-phpearth#comment-1149237</link>
    <description> &lt;p&gt;Well after reading that...it seems to think that my time values are illegal...but they aren&#039;t&lt;/p&gt;
&lt;p&gt;Example:  16:00:00       [4 PM]......14:00:00      [2 PM]&lt;/p&gt;
&lt;p&gt;All of the times are legal....&lt;/p&gt;
&lt;p&gt;About the ASC/DESC...I didn&#039;t know MySQL had online doc...thanks.&lt;/p&gt;
 </description>
     <pubDate>Fri, 09 Apr 2004 00:50:10 +0000</pubDate>
 <dc:creator>brady.k</dc:creator>
 <guid isPermaLink="false">comment 1149237 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
