<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1020285" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1020285</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/php-validation-problem#comment-1124037</link>
    <description> &lt;p&gt;Alkaif, the code I posted checks the database for that ID, if it&#039;s not there, will not result any lines which then prints the category does not exist.&lt;/p&gt;
 </description>
     <pubDate>Thu, 23 Jan 2003 13:05:35 +0000</pubDate>
 <dc:creator>zollet</dc:creator>
 <guid isPermaLink="false">comment 1124037 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/php-validation-problem#comment-1124014</link>
    <description> &lt;p&gt;Alkaif Khan, the code Zollet provided should do the job.  Post your code, and we&#039;ll make the appropriate changes for you.&lt;/p&gt;
 </description>
     <pubDate>Thu, 23 Jan 2003 04:05:32 +0000</pubDate>
 <dc:creator>Mark Hensler</dc:creator>
 <guid isPermaLink="false">comment 1124014 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/php-validation-problem#comment-1124013</link>
    <description> &lt;p&gt;I mean that works but not for what i need.&lt;/p&gt;
&lt;p&gt;IT should check the ID against the list of ids there. &lt;/p&gt;
&lt;p&gt;Say i have 7 ids in the ID column&lt;/p&gt;
&lt;p&gt;ID&lt;br /&gt;
1&lt;br /&gt;
2&lt;br /&gt;
3&lt;br /&gt;
4&lt;br /&gt;
5&lt;br /&gt;
6&lt;br /&gt;
7&lt;/p&gt;
&lt;p&gt;and showcat.php?id=39489 wants to show an id of 39489 but we dont have the ID 39489 so then it should output an error saying &quot;hey this is not a valid ID.&quot; or something like that.&lt;/p&gt;
&lt;p&gt;I know that can be done, but how?&lt;/p&gt;
 </description>
     <pubDate>Thu, 23 Jan 2003 04:02:33 +0000</pubDate>
 <dc:creator>Alkaif Khan</dc:creator>
 <guid isPermaLink="false">comment 1124013 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/php-validation-problem#comment-1124008</link>
    <description> &lt;p&gt;Looks like it&#039;ll work... as long as MySQL is installed and working&lt;br /&gt;
Are you getting any errors?&lt;br /&gt;
(Welcome to TWF too, Alkaif Khan)&lt;/p&gt;
 </description>
     <pubDate>Thu, 23 Jan 2003 02:47:02 +0000</pubDate>
 <dc:creator>nike_guy_man</dc:creator>
 <guid isPermaLink="false">comment 1124008 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/php-validation-problem#comment-1124007</link>
    <description> &lt;p&gt;You need to edit it to fit your needs. Also you must be connected to the MySQL server before you execute the above code. If you do that correctly, then it should work (unless I&#039;ve typed it wrong &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>Thu, 23 Jan 2003 02:43:07 +0000</pubDate>
 <dc:creator>zollet</dc:creator>
 <guid isPermaLink="false">comment 1124007 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/php-validation-problem#comment-1124005</link>
    <description> &lt;p&gt;Neverworked mate.&lt;/p&gt;
 </description>
     <pubDate>Thu, 23 Jan 2003 02:13:49 +0000</pubDate>
 <dc:creator>Alkaif Khan</dc:creator>
 <guid isPermaLink="false">comment 1124005 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/php-validation-problem#comment-1123993</link>
    <description> &lt;p&gt;I&#039;m assuming you&#039;re using MySQL to store the products and categories...&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;$result &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;mysql_query&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(\&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;SELECT id FROM categories WHERE id = &#039;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$id&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;\&quot;);&lt;br /&gt;if(mysql_num_rows(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$result&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;) &amp;lt; 1) {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; echo \&quot;The category does not exist!\&quot;.&lt;br /&gt;}&lt;br /&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
 </description>
     <pubDate>Wed, 22 Jan 2003 22:10:28 +0000</pubDate>
 <dc:creator>zollet</dc:creator>
 <guid isPermaLink="false">comment 1123993 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
