<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1023306" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1023306</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/web-database-development/updating-several-recordsplease-help#comment-1148685</link>
    <description> &lt;p&gt;Hi All,&lt;/p&gt;
&lt;p&gt;I&#039;m new to the board, new to MySQL, and have become the company &#039;webmaster&#039; by default...&lt;/p&gt;
&lt;p&gt;With that said, my situation is similar to Diana&#039;s, except that my column doesn&#039;t contain just one word.  What I need to do is change a single word &quot;cover&quot; to &quot;covers&quot; in ever instance throughout the `description` field.&lt;/p&gt;
&lt;p&gt;From: &quot;blah blah blah cover blah blah&quot;&lt;br /&gt;
To: &quot;blah blah blah blah covers blah blah&quot;&lt;/p&gt;
&lt;p&gt;I have a feeling this is going to be WAY over my head..but thanks in advance for any help.&lt;/p&gt;
&lt;p&gt;-john&lt;/p&gt;
 </description>
     <pubDate>Thu, 01 Apr 2004 00:06:49 +0000</pubDate>
 <dc:creator />
 <guid isPermaLink="false">comment 1148685 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/web-database-development/updating-several-recordsplease-help#comment-1143279</link>
    <description> &lt;p&gt;Thanks Greg...I certainly appreciate all your help. Wish you Merry Christmas and Happy New Year. Happy holidays...&lt;/p&gt;
&lt;p&gt;Rgds&lt;br /&gt;
Diana&lt;/p&gt;
 </description>
     <pubDate>Thu, 25 Dec 2003 04:36:34 +0000</pubDate>
 <dc:creator>diana</dc:creator>
 <guid isPermaLink="false">comment 1143279 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/web-database-development/updating-several-recordsplease-help#comment-1143272</link>
    <description> &lt;p&gt;That should do it for you, then don&#039;t forget to run a second query for chaning the WITHOUT to NO.&lt;/p&gt;
&lt;p&gt;After you execute the query, you can check &lt;strong&gt;mysql_affected_rows($result)&lt;/strong&gt; to see how many rows it updated.&lt;/p&gt;
&lt;p&gt;-Greg&lt;/p&gt;
 </description>
     <pubDate>Thu, 25 Dec 2003 02:50:45 +0000</pubDate>
 <dc:creator>Greg K</dc:creator>
 <guid isPermaLink="false">comment 1143272 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/web-database-development/updating-several-recordsplease-help#comment-1143254</link>
    <description> &lt;p&gt;Hi Mark,&lt;/p&gt;
&lt;p&gt;Thanks for such quick reply.It looks so simple:)...will it update all the 12,000 rows?..say I have the query build up like...&lt;br /&gt;
$result=mysql_query(&quot;UPDATE users SET intro=&#039;YES&#039; where intro=&#039;with&#039;, $link);&lt;/p&gt;
&lt;p&gt;Now does the above query will update all the rows where &#039;intro&#039; is found to be having a value &#039;with&#039; and change that value to &#039;YES&#039;....?&lt;/p&gt;
&lt;p&gt;Well I am getting it....I seems to be such a novice:)...long way to go....thanks Mark...Merry Cristmas to you and your family..&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;
&lt;p&gt;regards&lt;br /&gt;
Diana&lt;/p&gt;
 </description>
     <pubDate>Wed, 24 Dec 2003 13:56:01 +0000</pubDate>
 <dc:creator>diana</dc:creator>
 <guid isPermaLink="false">comment 1143254 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/web-database-development/updating-several-recordsplease-help#comment-1143253</link>
    <description> &lt;p&gt;Diana, welcome to WMF and Merry Christmas to you also. If you want to update records in MySQL assuming that your column contains values like &#039;with&#039; or &#039;without&#039; and not &#039;with other stuff&#039; or without other stuff&#039;, in other words only a single word in those columns, then it is pretty easy to do with a simple query. Just do:&lt;br /&gt;
&lt;strong&gt;UPDATE tablename set column_name=&#039;Yes&#039; where column_name=&#039;With&#039;;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Now this problem could have been solved from the beginning if the column type was either a single character (Y and N or 1 and 2). This way you can save a little database space and avoid some redundancy.&lt;/p&gt;
 </description>
     <pubDate>Wed, 24 Dec 2003 13:11:58 +0000</pubDate>
 <dc:creator>mairving</dc:creator>
 <guid isPermaLink="false">comment 1143253 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
