Results 1 to 2 of 2

Thread: PHP myadmin

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Dec 2007
    Posts
    22

    PHP myadmin

    Hello Everyone,


    I'm using php myadmin through my web hosting company and I'm trying to build a ecommerce site but am getting confused. This is my site www.smallfavors4u.c.com. Under Theme favors under the left panel is one category. Then when you click on vegas you have anther category. With that you have all the information for the table . I have this sooo far but am thinking im doing it wrong. What do you think? What would product id be then?
    Thank in advance

    Field Type Collation Attributes Null Default Extra Action
    Product ID varchar(250) latin1_swedish_ci No
    Name varchar(250) latin1_swedish_ci No
    Description text latin1_swedish_ci No
    Price decimal(65,0) No
    Picture longblob BINARY No
    Available varchar(10) latin1_swedish_ci No Check All / Uncheck All With selected:

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

    Re: PHP myadmin

    I don't think the way you have done it is wrong, but the way you have done is does not make it scalable and you are likely to run into problems if the system needs expanding. I.e: products in more than one category; changing the products category.

    I suggest you make a new table called categories and give each category a name and an ID and indicate weather a category is a sub category of another category. You can then add a field to your products table called category ID.
    Code:
    # categories
    category_id INTEGER
    category_name VARCHAR(50)
    parent_id INTEGER DEFAULT 0
    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