Results 1 to 2 of 2

Thread: Automating categories into tables

  1. #1

    Thread Starter
    New Member
    Join Date
    Nov 2005
    Posts
    1

    Automating categories into tables

    Hi all:

    Currently I have my tables named after the category of the stuff it contains such as automotive. I then add the info to the database one category at a time via a tab delimited text file. This is very time consuming however and I wondered if anyone knew of a way to automate it so that I can just load a tab delimited text file and it creates the tables for each category based on the category field.

  2. #2
    VBA Nutter visualAd's Avatar
    Join Date
    Apr 2002
    Location
    Ickenham, UK
    Posts
    4,906

    Re: Automating categories into tables

    You can use a MYSql query to rip data from a text file. But as you have made a table for each category, you are shooting yourself in the foot. You could always write a PHP script which makes the additions for you, provided the data is consistent, however, it would be of much greater benefit to you if you were to create on table which has a field relating to the category, rather than a table for each.
    PHP || MySql || Apache || Get Firefox || OpenOffice.org || Click || Slap ILMV || 1337 c0d || GotoMyPc For FREE! Part 1, Part 2

    | PHP Session --> Database Handler * Custom Error Handler * Installing PHP * HTML Form Handler * PHP 5 OOP * Using XML * Ajax * Xslt | VB6 Winsock - HTTP POST / GET * Winsock - HTTP File Upload

    Latest quote: crptcblade - VB6 executables can't be decompiled, only disassembled. And the disassembled code is even less useful than I am.

    Random VisualAd: Blog - Latest Post: When the Internet becomes Electricity!!


    Spread happiness and joy. Rate good posts.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width