ASP Free Lounge
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsOtherASP Free Lounge

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
SlickEdit: Code in over 40 languages across 7 platforms. SlickEdit’s unmatched power, speed, and flexibility allows even the most accomplished developers to write better code faster. Download a free trial today!
  #1  
Old April 30th, 2004, 06:40 PM
scratch scratch is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Apr 2004
Posts: 26 scratch User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Question product/ customer review

Hey, i wasn't really sure where to put this question so i thought id post it this section. i've created an e-commerce site that sells various products, and on the details page (below the product), i would like to have a 'customer review' section where users can read other users' comments about that specific product and be given the chance to post comment themselves. ive seen several other asp sites that can do this (i.e http://affordablesupplements.co.uk/....asp?prodid=512 ).

the only part i really understand is the insert record bit when the user submits their comment and it goes into the database.
originally i assumed that i could create a a new field in my product table, but if i want multiple reviews, thats not possible, so i assume i have to create a table per product. right?
if i got really lazy i could just create one page which displays reviews about all products, but thats a last resort. any help would be really appreciated.

Last edited by scratch : April 30th, 2004 at 06:43 PM.

Reply With Quote
  #2  
Old May 2nd, 2004, 03:32 PM
edwinbrains's Avatar
edwinbrains edwinbrains is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Mar 2004
Location: UK
Posts: 140 edwinbrains User rank is Private First Class (20 - 50 Reputation Level)edwinbrains User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 8 h 44 m 10 sec
Reputation Power: 5
The easiest way to do this would be to have a new table for all product reviews. In that table have the following columns: id, review details and product id. On the product page you'll then just search the table for any reviews with the same product id and the current product being displayed.

Reply With Quote
  #3  
Old May 7th, 2004, 05:40 PM
scratch scratch is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Apr 2004
Posts: 26 scratch User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Question

ok thanks. but how do i make it so only the appropiate reviews are displayed in the details page and also when a user submits a new review, how do i make it so the review is for that secific product?

Reply With Quote
  #4  
Old May 8th, 2004, 05:55 AM
edwinbrains's Avatar
edwinbrains edwinbrains is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Mar 2004
Location: UK
Posts: 140 edwinbrains User rank is Private First Class (20 - 50 Reputation Level)edwinbrains User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 8 h 44 m 10 sec
Reputation Power: 5
In the table that you have for the reviews, you have an addition column which contains the id of the product. When creating a new review, you enter a new row in the table with the id of the product as one of the fields. When displaying reviews, you only display reviews from the table where the id field is equal to the id of the product currently being viewd.

Reply With Quote
  #5  
Old May 11th, 2004, 05:12 PM
scratch scratch is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Apr 2004
Posts: 26 scratch User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Talking error

thanks for your help. ive actually got it all wrking but now i have a new problem.
on the details page where i display the reviews, any page that has a review works fine, but on a page where there are no reviews, where it should be blank this error message appears:



ADODB.Fielderror '800a0bcd'

Unknown runtime error /irfan/detail.asp, line 395

on that particular line is where i've inserted my pid recordset
<td><%=(rev.Fields.Item("pid").Value)%></td>

any idea how i can fix this. cheers!!

Reply With Quote
  #6  
Old May 12th, 2004, 01:04 AM
edwinbrains's Avatar
edwinbrains edwinbrains is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Mar 2004
Location: UK
Posts: 140 edwinbrains User rank is Private First Class (20 - 50 Reputation Level)edwinbrains User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 8 h 44 m 10 sec
Reputation Power: 5
Sorry, I don't know. Haven't done ASP for a while now...

Reply With Quote
  #7  
Old May 12th, 2004, 08:37 AM
scratch scratch is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Apr 2004
Posts: 26 scratch User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Talking

ok, thanks anyway, one last question. how do i get the date the rview was submitted, cos there is a field in the database that lets u do tat but its always empty.

Reply With Quote
Reply

Viewing: ASP Free ForumsOtherASP Free Lounge > product/ customer review


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 

IBM developerWorks




© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway