Current location: Hot Scripts Forums » Programming Languages » PHP » PHP Website


PHP Website

Reply
  #1 (permalink)  
Old 12-08-04, 08:32 AM
nicpon nicpon is offline
Wannabe Coder
 
Join Date: Apr 2004
Location: Moving
Posts: 109
Thanks: 0
Thanked 0 Times in 0 Posts
PHP Website

I would like to create php and mysql based website that have 5 different kinds of products and about 10 types of each kind. I want it be something like online catalog but dunno how to start. I have some experience in php and mysql but havent create anything from the scratch bymyself.Are you guys willing to help me a bit or have any ideas ??How should i start creating website in PHP ??
Reply With Quote
  #2 (permalink)  
Old 12-08-04, 10:26 AM
rockitdev rockitdev is offline
Newbie Coder
 
Join Date: Dec 2004
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Thumbs up

if you want your solution to be dynamic, then get your mysql database planned out first. any product catalogue should be stored in a db. that will be the backbone of your site. there are plenty of good tutorial sites out there to help you with developing your database. many of which you can find from the links at the top of this page. hot scripts is a really good site. then, build your pages to output the data from your database. those pages will be a combination of some sql to retrieve the data from the db, then php to output the data. if your solution requires a shopping cart, then find a good tutorial that deals with storing your information in a shopping cart. you will want to use a session approach for your cart as they are the best to use.

any e-comm site planning goes db -> pages to show your product -> shopping cart to make money. hope this helps.

~Rockitdev
Reply With Quote
  #3 (permalink)  
Old 12-08-04, 10:43 AM
nicpon nicpon is offline
Wannabe Coder
 
Join Date: Apr 2004
Location: Moving
Posts: 109
Thanks: 0
Thanked 0 Times in 0 Posts
thanks rockitdev,

Now i know at least how to start, I dont need the shopping cart right now, maybe later but for now i would like to have only thumbnails of every single product with short discription. So i guess i will need 5 tables with 10 selections each.
Reply With Quote
  #4 (permalink)  
Old 12-10-04, 08:58 AM
Wuiqed Wuiqed is offline
Wannabe Coder
 
Join Date: Aug 2004
Location: Sverige
Posts: 124
Thanks: 0
Thanked 0 Times in 0 Posts
Not really, one table will be sufficient. Let's say your five products are product A, B, C, D and E and each variation of the products is labeled from 1 to 10. When you create your table, use one extra column and call it product. It could be like this...

Code:
 product  | type     | price
-----------------------------
 A        | 1        |  9.95
-----------------------------
 A        | 2        | 19.95 
-----------------------------
 B        | 1        |  9.95 
-----------------------------
 A        | 3        | 29.95 
-----------------------------
 E        | 1        |  9.95 
-----------------------------
 E        | 2        | 19.95
This would make 1 table enough.
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP scripts related website - Banner Exchange? shadi Traffic Exchange 4 01-02-05 02:02 PM
Website Managment with PHP ? lunatick PHP 8 12-04-04 09:50 AM
FS: Prozilla Memberships (Turnkey Sites) - $10-15 less than Retail! rockergrrl General Advertisements 0 08-11-04 12:05 AM
Syndicating XML data into a website using PHP... Jackal05 PHP 3 07-16-04 02:38 PM
Help! With setting up a basic PHP Forum page on the website. A-A PHP 0 05-05-04 08:15 AM


All times are GMT -5. The time now is 05:18 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.