<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1018943" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1018943</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/server-side-scripting/phpmysql-trouble#comment-1112123</link>
    <description> &lt;p&gt;damnit.. thanks Mark - I knew that &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/sad.png&quot; title=&quot;Sad&quot; alt=&quot;Sad&quot; class=&quot;smiley-content&quot; /&gt; I hate it when that happens lol.. thanks for the info about the query not retrieving a true/false value too &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, 02 Aug 2002 23:19:54 +0000</pubDate>
 <dc:creator>a_gajic</dc:creator>
 <guid isPermaLink="false">comment 1112123 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/server-side-scripting/phpmysql-trouble#comment-1112105</link>
    <description> &lt;p&gt;Mark, nice catch! &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; I didn&#039;t even bother looking at the query when I saw the !$result part. &lt;/p&gt;
&lt;p&gt;Cheers.&lt;/p&gt;
 </description>
     <pubDate>Fri, 02 Aug 2002 07:10:16 +0000</pubDate>
 <dc:creator>zollet</dc:creator>
 <guid isPermaLink="false">comment 1112105 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/server-side-scripting/phpmysql-trouble#comment-1112104</link>
    <description> &lt;p&gt;SET doesn&#039;t use the AND field seperator, it uses the coma.&lt;/p&gt;
&lt;p&gt;$query = &quot;UPDATE topics SET tsubject=&#039;$tsubject&#039;, tbody=&#039;$tbody&#039; WHERE tid=&#039;$tid&#039;&quot;;&lt;/p&gt;
 </description>
     <pubDate>Fri, 02 Aug 2002 06:49:52 +0000</pubDate>
 <dc:creator>Mark Hensler</dc:creator>
 <guid isPermaLink="false">comment 1112104 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/server-side-scripting/phpmysql-trouble#comment-1112103</link>
    <description> &lt;p&gt;a_gajic,&lt;/p&gt;
&lt;p&gt;Try the following..&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;$query &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;= \&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;UPDATE topics SET tsubject=&#039;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$tsubject&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039; AND tbody=&#039;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$tbody&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039; WHERE (tid=&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$tid&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;)\&quot;;&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;$query&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;);&lt;br /&gt;&lt;br /&gt;if (mysql_errno())&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp; echo \&quot;Error in query&amp;lt;br&amp;gt;\n\&quot;;&lt;br /&gt;&amp;nbsp;&amp;nbsp; echo mysql_errno() . \&quot; - \&quot; . mysql_error();&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;The reason why I suggest this is because when you run an UPDATE query, it does not return a TRUE or FALSE value in $result.&lt;/p&gt;
 </description>
     <pubDate>Fri, 02 Aug 2002 02:18:24 +0000</pubDate>
 <dc:creator>zollet</dc:creator>
 <guid isPermaLink="false">comment 1112103 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/server-side-scripting/phpmysql-trouble#comment-1112102</link>
    <description> &lt;p&gt;are you sure $tid has a value and the record exists in the database?&lt;/p&gt;
 </description>
     <pubDate>Fri, 02 Aug 2002 00:05:57 +0000</pubDate>
 <dc:creator>ROB</dc:creator>
 <guid isPermaLink="false">comment 1112102 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/server-side-scripting/phpmysql-trouble#comment-1112099</link>
    <description> &lt;p&gt;Okay guys this is what happens...&lt;/p&gt;
&lt;p&gt;When I echo the variables they are fine and they show up...&lt;/p&gt;
&lt;p&gt;There is no mysql_error(); text either, any more ideas?&lt;/p&gt;
&lt;p&gt;the script is for an edit page on my forums that I am creating the query is like this&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;$query = &amp;quot;UPDATE topics SET tsubject=&amp;#039;$tsubject&amp;#039; AND tbody=&amp;#039;$tbody&amp;#039; WHERE (tid=$tid)&amp;quot;;&lt;br /&gt;$result = mysql_query($query);&lt;br /&gt;&lt;br /&gt;if (!$result)&amp;nbsp; {&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp; echo &amp;quot;Error in query&amp;lt;br&amp;gt;\n&amp;quot;;&lt;br /&gt;&amp;nbsp;&amp;nbsp; echo mysql_error();&lt;br /&gt;&lt;br /&gt;}&lt;/code&gt;&lt;/div&gt;&#039;&lt;/p&gt;
&lt;p&gt;any ideas?&lt;/p&gt;
 </description>
     <pubDate>Thu, 01 Aug 2002 21:04:06 +0000</pubDate>
 <dc:creator>a_gajic</dc:creator>
 <guid isPermaLink="false">comment 1112099 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/server-side-scripting/phpmysql-trouble#comment-1112072</link>
    <description> &lt;p&gt;and if that doesn&#039;t help, an&lt;br /&gt;
echo mysql_error( );&lt;/p&gt;
&lt;p&gt;is your friend.&lt;/p&gt;
 </description>
     <pubDate>Thu, 01 Aug 2002 11:22:35 +0000</pubDate>
 <dc:creator>anti</dc:creator>
 <guid isPermaLink="false">comment 1112072 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/server-side-scripting/phpmysql-trouble#comment-1112065</link>
    <description> &lt;p&gt;The best way to tell what is going on is to echo your query to the screen to see if it is passing values to the database.&lt;/p&gt;
 </description>
     <pubDate>Thu, 01 Aug 2002 10:16:29 +0000</pubDate>
 <dc:creator>mairving</dc:creator>
 <guid isPermaLink="false">comment 1112065 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
