<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1035758" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1035758</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/output-not-outputting-correctly#comment-1206442</link>
    <description> &lt;p&gt;the code works great!&lt;/p&gt;
&lt;p&gt;i just changed 2 of the variables because i posted them wrong by accident i.e. $artistname should have just been $artist which caused me to start this thread in the first place.&lt;/p&gt;
&lt;p&gt;thanks again Greg K&lt;br /&gt;
-drew&lt;/p&gt;
 </description>
     <pubDate>Tue, 29 Aug 2006 01:39:20 +0000</pubDate>
 <dc:creator>sublimer</dc:creator>
 <guid isPermaLink="false">comment 1206442 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/output-not-outputting-correctly#comment-1206441</link>
    <description> &lt;p&gt;thanks alot!  i was going to make it so the ... would only be displayed on those cut off, but you took it all one step further!&lt;/p&gt;
&lt;p&gt;i will add the code right now!&lt;/p&gt;
&lt;p&gt;thanks alot!&lt;br /&gt;
-drew&lt;/p&gt;
 </description>
     <pubDate>Tue, 29 Aug 2006 01:32:38 +0000</pubDate>
 <dc:creator>sublimer</dc:creator>
 <guid isPermaLink="false">comment 1206441 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/output-not-outputting-correctly#comment-1206435</link>
    <description> &lt;p&gt;Just a suggestion on a change on your code to output the links.&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;$dispLine &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$row&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;artistname&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;] . \&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot; - \&quot; . &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$row&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;bootname&#039;];&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;if (strlen(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$dispLine&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;)&amp;gt;65) &lt;br /&gt;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$dispLine&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; = substr(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$dispLine&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;,0,62) . \&quot;...\&quot;;&lt;br /&gt;&lt;br /&gt;echo \&quot;&amp;lt;img src=\\&quot;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;http&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #FF8000&quot;&gt;//www.sublimestylee.com/page_images/arrow.gif\\&quot;&amp;gt;\&quot;;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;echo \&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;&amp;lt;a href=\\&quot;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;http&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #FF8000&quot;&gt;//www.sublimestylee.com/pages/boots_list.php?artist=$artist&amp;amp;bootname=\&quot; . urlencode($row[&#039;bootname&#039;]) . \&quot;\\&quot;&amp;gt;\&quot;;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;echo &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$dispLine&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;;&lt;br /&gt;echo \&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;&amp;lt;/a&amp;gt;&amp;amp;nbsp;&amp;lt;br&amp;gt;\&quot;;&lt;br /&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;br /&gt;
The way you have the code, if you ever change the location/name of your arrow.gif image, or the url for the links, you have to update the length in the substr() call. The way I have it you can freely change those without affecting the display length.&lt;/p&gt;
&lt;p&gt;Additionally, on the way you have it, the longer the &quot;bootname&quot; you have, the shorter text you will have displayed, this is becasue the bootname is part of the URL in your link, which pushes out where your displayed text starts. (actually, if you have a bootname that was over 88 charaters in length, you wouldn&#039;t see any text displayed at all.)&lt;/p&gt;
&lt;p&gt;In my version, I used a length of 65 as the maximum characters to display. Note that my substr line allows for the three dots to be part of the maximum 65 displayed. Your code always showed the thre dots even if the full titles were displayed.&lt;/p&gt;
&lt;p&gt;Lastly, I encoded the information that is being used in the link, just general good practice to do this.&lt;/p&gt;
&lt;p&gt;Again, this is just a suggestion, your code will basically work fine, this is jsut a better method of cutting off long lines and making the code more readable and easier to manage.&lt;/p&gt;
&lt;p&gt;-Greg&lt;/p&gt;
 </description>
     <pubDate>Mon, 28 Aug 2006 23:49:05 +0000</pubDate>
 <dc:creator>Greg K</dc:creator>
 <guid isPermaLink="false">comment 1206435 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/output-not-outputting-correctly#comment-1206433</link>
    <description> &lt;p&gt;Try something like:&lt;/p&gt;
&lt;p&gt;SELECT artistname, DISTINCT bootname FROM ...&lt;/p&gt;
&lt;p&gt;not sure if you can have it before the distinct or not, have never done it personally, worth a shot thou&lt;/p&gt;
 </description>
     <pubDate>Mon, 28 Aug 2006 23:14:07 +0000</pubDate>
 <dc:creator>Busy</dc:creator>
 <guid isPermaLink="false">comment 1206433 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/output-not-outputting-correctly#comment-1206423</link>
    <description> &lt;p&gt;haha yea i know i have some random tags and all in there.&lt;/p&gt;
&lt;p&gt;a boot is short for bootleg which is a live recording of a live show generally done by sneaking in a sound recording device.&lt;/p&gt;
&lt;p&gt;i know the difference between my queries i just need to find a happy medium between the two.&lt;/p&gt;
&lt;p&gt;if i do SELECT DISTINCT bootname, artist all it displays is a - if i remember correctly.&lt;/p&gt;
&lt;p&gt;lets say this is my input for a new boot&lt;/p&gt;
&lt;p&gt;Band 1 - Bootname - Songname 1 - id1&lt;br /&gt;
Band 1 - Bootname - Songname 2 - id2&lt;br /&gt;
Band 1 - Bootname - Songname 3 - id3&lt;br /&gt;
Band 1 - Bootname - Songname 4 - id4&lt;/p&gt;
&lt;p&gt;the output on the homepage under recent boots should just be&lt;/p&gt;
&lt;p&gt;Band 1 - Bootname&lt;/p&gt;
&lt;p&gt;haha i just had a brainfart.  i posted that at like 2 in the morning last night.  i dont need the id, i just havent changed where the link goes to yet.  so i dont care about its id on the homepage.&lt;/p&gt;
&lt;p&gt;that means all i need is for it to display the artist name before the bootname.  All i need is the artistname variable to work and im good!&lt;/p&gt;
&lt;p&gt;heres my query code and my loop/display code...&lt;/p&gt;
&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: #DD0000&quot;&gt;&quot;SELECT DISTINCT bootname FROM downloads WHERE filetype=&#039;boots&#039; ORDER BY id DESC LIMIT 7\&quot;;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$result&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; = mysql_query( &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$sql&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; );&lt;br /&gt;if (!&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$result&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;) {&lt;br /&gt;&amp;nbsp; echo(\&quot;&amp;lt;P&amp;gt;Error performing query: \&quot; .&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; mysql_error() . \&quot;&amp;lt;/P&amp;gt;\&quot;);&lt;br /&gt;&amp;nbsp; exit();&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;while ( &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$row&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; = mysql_fetch_array(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$result&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;) ) {&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; echo substr(\&quot;&amp;lt;img src=\\&quot;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;http&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #FF8000&quot;&gt;//www.sublimestylee.com/page_images/arrow.gif\\&quot;&amp;gt;&amp;lt;a href=\\&quot;http://www.sublimestylee.com/pages/boots_list.php?artist=$artist&amp;amp;bootname=\&quot; . $row[\&quot;bootname\&quot;] . \&quot;\\&quot;&amp;gt;\&quot; . $row[\&quot;artistname\&quot;] . \&quot; - \&quot; . $row[\&quot;bootname\&quot;] . \&quot;\&quot;, 0, 243);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;echo(\&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;...&amp;lt;/a&amp;gt;&amp;amp;nbsp;&amp;lt;br&amp;gt;\&quot;);&lt;br /&gt;}&lt;br /&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;all i need is the artistname to work and it will display correctly and link correctly.&lt;/p&gt;
&lt;p&gt;thanks&lt;br /&gt;
-drew&lt;/p&gt;
 </description>
     <pubDate>Mon, 28 Aug 2006 17:35:16 +0000</pubDate>
 <dc:creator>sublimer</dc:creator>
 <guid isPermaLink="false">comment 1206423 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/output-not-outputting-correctly#comment-1206391</link>
    <description> &lt;p&gt;I&#039;m a little confused with &#039;boot&#039;, &#039;boots&#039; and &#039;bootname&#039;&lt;/p&gt;
&lt;p&gt;When you say it should just display the &#039;boot&#039; is that like artist or group?&lt;/p&gt;
&lt;p&gt;The SELECT DISTINCT bootname and SELECT * are two very different queries, the first will list all the bootnames in bootname once (wont get duplicates of same name), where as the second will list everything where filetype=&#039;boots&#039; (name, address, favorite drink ... whatever you have in the db rows).&lt;/p&gt;
&lt;p&gt;Ok I think I get it, you have artist and boot (song title?) in different fields in your database, in which case you will need to do something like SELECT DISTINCT artist, bootname but then you&#039;ll still be missing the id etc as what you list is what you get. So you&#039;ll either have to do the works: SELECT DISTINCT id, artist, bootname (and whatever else you are using) but giving it to much could mess up how DISTINCT works so a JOIN might be easier. But to use a join you need to be using two rows &lt;/p&gt;
&lt;p&gt;The above kind of makes sense to your first problem but doesn&#039;t relate to well with the second bit of the first, must be showing my age as I have no idea what the &#039;boot&#039; is lol. Back in my day ... dang now i feel really old. Bring back the grammer phone &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/wink.png&quot; title=&quot;Wink&quot; alt=&quot;Wink&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;
&lt;p&gt;You also have some issues with your output html, your including some files with html heading tags (html, head, title ..) which shouldn&#039;t be there, view source on the pages and see what I mean.&lt;/p&gt;
 </description>
     <pubDate>Mon, 28 Aug 2006 11:03:42 +0000</pubDate>
 <dc:creator>Busy</dc:creator>
 <guid isPermaLink="false">comment 1206391 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
