<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1027317" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1027317</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/truncating-database-text#comment-1162543</link>
    <description> &lt;p&gt;or in ColdFusion:&lt;/p&gt;
&lt;p&gt;#Left(variable, 7)#&lt;/p&gt;
&lt;p&gt;just wanted to round off the choices! &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/big.png&quot; title=&quot;Laughing out loud&quot; alt=&quot;Laughing out loud&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;
 </description>
     <pubDate>Wed, 08 Dec 2004 18:22:59 +0000</pubDate>
 <dc:creator>openmind</dc:creator>
 <guid isPermaLink="false">comment 1162543 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/truncating-database-text#comment-1162541</link>
    <description> &lt;p&gt;Splendid. Thank you very much. =)&lt;/p&gt;
 </description>
     <pubDate>Wed, 08 Dec 2004 17:27:52 +0000</pubDate>
 <dc:creator>mjs416</dc:creator>
 <guid isPermaLink="false">comment 1162541 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/truncating-database-text#comment-1162540</link>
    <description> &lt;p&gt;In your SQL query itself you can do the following:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;$query = &quot;SELECT LEFT(&lt;em&gt;fieldname&lt;/em&gt;,7) FROM &lt;em&gt;table&lt;/em&gt;&quot;;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;In the server side script itself, assuming the data you want to truncate is in &lt;em&gt;variable&lt;/em&gt;:&lt;/p&gt;
&lt;p&gt;in PHP, &lt;strong&gt;substr(&lt;em&gt;variable&lt;/em&gt;,0,7);&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;in ASP, not sure, but if it&#039;s like VB, &lt;strong&gt;left(&lt;em&gt;variable&lt;/em&gt;,7)&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;-Greg&lt;/p&gt;
 </description>
     <pubDate>Wed, 08 Dec 2004 17:22:45 +0000</pubDate>
 <dc:creator>Greg K</dc:creator>
 <guid isPermaLink="false">comment 1162540 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
