<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1019349" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1019349</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/server-side-scripting/insertion-product-list-form-txt-or-xls#comment-1115453</link>
    <description> &lt;p&gt;About Peter&#039;s response to your first question.&lt;br /&gt;
You could have another column named &#039;catagory&#039; with the catagory that each item is placed in and then do:&lt;br /&gt;
$catagory=&#039;monitors&#039;;&lt;br /&gt;
$query = mysql_query(&quot;SELECT * FROM `catalog` WHERE catagory=&#039;$catagory&#039;&quot;);&lt;br /&gt;
instead of:&lt;br /&gt;
$query = mysql_query(&quot;SELECT id,item,description,price,rating FROM `catalog`&quot;);&lt;/p&gt;
&lt;p&gt;-dk&lt;/p&gt;
 </description>
     <pubDate>Sat, 05 Oct 2002 12:47:19 +0000</pubDate>
 <dc:creator>dk01</dc:creator>
 <guid isPermaLink="false">comment 1115453 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/server-side-scripting/insertion-product-list-form-txt-or-xls#comment-1115401</link>
    <description> &lt;p&gt;1. You would have to design your database to allow different categories. Probably by adding another table that holds these items along with what category they&#039;re in.&lt;/p&gt;
&lt;p&gt;2. You would use an INSERT to put data into your database.&lt;/p&gt;
&lt;p&gt;You might want to take a second to read up on mySQL so you really understand what you&#039;re doing, take a look at the docs at: &lt;a href=&quot;http://www.mysql.com&quot; class=&quot;bb-url&quot;&gt;mysql.com&lt;/a&gt;&lt;/p&gt;
 </description>
     <pubDate>Fri, 04 Oct 2002 15:01:26 +0000</pubDate>
 <dc:creator>Peter J. Boettcher</dc:creator>
 <guid isPermaLink="false">comment 1115401 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/server-side-scripting/insertion-product-list-form-txt-or-xls#comment-1115384</link>
    <description> &lt;p&gt;necrotic, thanks for helping me &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;I have 2 questions :&lt;/p&gt;
&lt;p&gt;1. Because I would like to use this database for a computer store,&lt;br /&gt;
I would like to display different categoryes of catalog. How can I display for example just monitors or CPU or Ram data?&lt;/p&gt;
&lt;p&gt;2. How can I fill database with all product data?&lt;/p&gt;
 </description>
     <pubDate>Fri, 04 Oct 2002 04:40:04 +0000</pubDate>
 <dc:creator>club-art.net</dc:creator>
 <guid isPermaLink="false">comment 1115384 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/server-side-scripting/insertion-product-list-form-txt-or-xls#comment-1115374</link>
    <description> &lt;p&gt;Okay, first you need a MySQL database. Make sure it&#039;s set up and running. When you&#039;re sure it&#039;s up and running you need to make a table, I&#039;ll call it `catalog`. In PHP the syntax for creating a table is:&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;CREATE TABLE &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;catalog&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;` (&lt;br /&gt;`&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;id&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;` &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;TINYINT&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;6&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;) &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;NULL AUTO_INCREMENT PRIMARY KEY&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;, &lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #FF8000&quot;&gt;// This makes a column called `id` for your item ID number. It&#039;s set to increase automatically with each insertion.&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;item&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;` &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;VARCHAR&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;255&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;) &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;NOT NULL&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;, &lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #FF8000&quot;&gt;// This makes a column for your item name. It&#039;s set for a max length of 255 characters.&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;description&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;` &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;TEXT NOT NULL&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;, &lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #FF8000&quot;&gt;// This makes a column for your items description.&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;price&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;` &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;VARCHAR&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;10&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;) &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;NOT NULL&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;, &lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #FF8000&quot;&gt;// This makes a colum for your items cost.&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;rating&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;` &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;TINYINT&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;5&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;) &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;NOT NULL &lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #FF8000&quot;&gt;// This makes a column for your items ratings. People can vote a value of 1-10 and it will contain the average.&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;);&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;That&#039;s probably not the best way to make it. But it&#039;s how I would. To grab an item(s) from the database you would need something like this:&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;$connect &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;mysql_connect&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;localhost&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;USERNAME&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;PASSWORD&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;); &lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #FF8000&quot;&gt;// Replace USERNAME and PASSWORD with their respective items.&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$db_con &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;mysql_select_db&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;DBNAME&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$connect&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;); &lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #FF8000&quot;&gt;// Replace DBNAME with the name of your database.&lt;br /&gt;&lt;br /&gt;// The following line declares the query to be done.&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$query &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,item,description,price,rating FROM `catalog`\&quot;);&lt;br /&gt;&lt;br /&gt;// Next we need to use the query. The while() function keeps the results flowing.&lt;br /&gt;while(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$result&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; = mysql_fetch_assoc(&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;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$id&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; = &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$result&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;\&quot;id\&quot;];&lt;br /&gt;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$item&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; = &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$result&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;\&quot;item\&quot;];&lt;br /&gt;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$description&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; = &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$result&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;\&quot;description\&quot;];&lt;br /&gt;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$price&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; = &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$result&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;\&quot;price\&quot;];&lt;br /&gt;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$rating&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; = &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$result&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;\&quot;rating\&quot;];&lt;br /&gt;&lt;br /&gt;&amp;nbsp; echo (\&quot;ID: &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$id&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&amp;lt;BR&amp;gt;\n\&quot;);&lt;br /&gt;&amp;nbsp; echo (\&quot;Item: &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$item&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&amp;lt;BR&amp;gt;\n\&quot;);&lt;br /&gt;&amp;nbsp; echo (\&quot;Description: &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$description&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&amp;lt;BR&amp;gt;\n\&quot;);&lt;br /&gt;&amp;nbsp; echo (\&quot;Price: \$ &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$price&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&amp;lt;BR&amp;gt;\n\&quot;);&lt;br /&gt;&amp;nbsp; echo (\&quot;Rating: &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$rating&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&amp;lt;BR&amp;gt;&amp;lt;BR&amp;gt;\n\n\&quot;);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;exit(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$db_con&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;);&lt;br /&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;People more fluent in PHP/MySQL should be able to help you more, but I hope I helped some &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, 04 Oct 2002 00:49:06 +0000</pubDate>
 <dc:creator>necrotic</dc:creator>
 <guid isPermaLink="false">comment 1115374 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/server-side-scripting/insertion-product-list-form-txt-or-xls#comment-1115353</link>
    <description> &lt;p&gt;Can someone help me to do this with MySQL.&lt;/p&gt;
&lt;p&gt;Please.&lt;/p&gt;
 </description>
     <pubDate>Thu, 03 Oct 2002 08:24:59 +0000</pubDate>
 <dc:creator>club-art.net</dc:creator>
 <guid isPermaLink="false">comment 1115353 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/server-side-scripting/insertion-product-list-form-txt-or-xls#comment-1115331</link>
    <description> &lt;p&gt;information drawen from a database would be easier, but you can do what you want to do I think with flat file.&lt;/p&gt;
&lt;p&gt;productlist.inc&lt;/p&gt;
&lt;p&gt;$item_1 = (&quot;the details .....&quot;);&lt;br /&gt;
$item_2 = (&quot;the details .....&quot;);&lt;br /&gt;
$item_3 = (&quot;the details .....&quot;);&lt;br /&gt;
$item_4 = (&quot;the details .....&quot;);&lt;br /&gt;
$item_5 = (&quot;the details .....&quot;);&lt;br /&gt;
etc&lt;/p&gt;
&lt;p&gt;then call this page from the page you want it on:&lt;br /&gt;
include (&quot;productlist.inc&quot;); &lt;/p&gt;
&lt;p&gt;then make your tables&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; &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;echo(&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$item_1&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;); &lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&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; &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;echo(&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$item_2&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;); &lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;br /&gt;
...&lt;/p&gt;
&lt;p&gt;This is a very basic example, but in the $item_1 description could be product number table tags product name table tags ... to make the layout the same.&lt;br /&gt;
If your going to a lot of these pages I would reccomend learning MySQL, would be so much easier and faster.&lt;/p&gt;
 </description>
     <pubDate>Wed, 02 Oct 2002 23:11:10 +0000</pubDate>
 <dc:creator>Busy</dc:creator>
 <guid isPermaLink="false">comment 1115331 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
