<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1019380" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1019380</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/web-database-development/sort-order#comment-1115793</link>
    <description> &lt;p&gt;Mike,&lt;/p&gt;
&lt;p&gt;You might want to start experimenting with paging, once you start getting too much data in your database your scripts will start timing out or take too long to execute.&lt;/p&gt;
 </description>
     <pubDate>Fri, 11 Oct 2002 00:45:59 +0000</pubDate>
 <dc:creator>Peter J. Boettcher</dc:creator>
 <guid isPermaLink="false">comment 1115793 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/web-database-development/sort-order#comment-1115757</link>
    <description> &lt;p&gt;Here&#039;s the experimental stuff I&#039;m teaching myself with (although the actual data is real)&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://www.pstvalumni.com/directory/display2.php&quot; class=&quot;bb-url&quot;&gt;pstvalumni.com/directory/display2.php&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;None of the lastname or firstname fields are blank but a lot of the additonal columns contain blank fields.  &lt;/p&gt;
&lt;p&gt;Thanks for pointing me in the right direction.  I&#039;ll try one of these suggestions next time I work on it.  &lt;/p&gt;
&lt;p&gt;&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>Thu, 10 Oct 2002 04:39:14 +0000</pubDate>
 <dc:creator>fifeclub</dc:creator>
 <guid isPermaLink="false">comment 1115757 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/web-database-development/sort-order#comment-1115727</link>
    <description> &lt;p&gt;Try&lt;br /&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;SELECT &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;* &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;from alumni2 &lt;br /&gt;WHERE lastname &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;&amp;lt;&amp;gt; &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;NULL&#039;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;ORDER BY lastname&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;firstname&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;br /&gt;
You really have a couple of options. You can try using something like WHERE lastname &amp;gt; &#039;0&#039;, which works okay some of the time. I tend to prefer to set a default value &#039;NULL&#039; for the field so that I can exclude by WHERE lastname &amp;lt;&amp;gt; &#039;NULL&#039;. I guess the other question would be why do you have fields like lastname, firstname that are blank.&lt;/p&gt;
&lt;p&gt;You could also make a conditional statement with PHP once you have all of your data.&lt;/p&gt;
 </description>
     <pubDate>Wed, 09 Oct 2002 17:52:18 +0000</pubDate>
 <dc:creator>mairving</dc:creator>
 <guid isPermaLink="false">comment 1115727 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/web-database-development/sort-order#comment-1115724</link>
    <description> &lt;p&gt;You&#039;ll have to run two queries.  The first query will omit the blank entries (with a WHERE clause), and the optional second query would retrieve the blank entries.&lt;/p&gt;
 </description>
     <pubDate>Wed, 09 Oct 2002 17:47:49 +0000</pubDate>
 <dc:creator>Mark Hensler</dc:creator>
 <guid isPermaLink="false">comment 1115724 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
