Dividing?

How do i make it so i devide all ratings up

eg if there was 7 reviews of 5/5 it would add them all up to 25 and divide by the total number of reviews for that sumision which would be 5

Anyone know ?

View Replies


ADVERTISEMENT

Dividing Article

I am trying to figure out how to divide longer articles in to separate pages with a "next page" function at the bottom of each page.
Thus far, for my information based website, I have created my database, my Articles.asp page, my Catagory.asp page, and my default.asp and I have built a content editor to enter my articles. And all are working great.
My problem is, I would like to divide my longer articles into smaller pages. I see it all the time on sites...so I can't believe it is that hard. Do I need to divide the articles into "fields" in my database? or is there a way to do it without altering my database?

View Replies View Related

Dividing Variables And Rounding

I'm doing up a stats page for a survey, and this is a small
part of one of the results. Below is part of the code to do
totals/percents. My question is, how do i make it so myAnswer is
written with two decimal places?

Currently, it displays the percent as 4.76190476190476

<%
myAnswer = OneAgree_total / OneTotal_total * 100
Response.Write "" & myAnswer
%>

View Replies View Related

Add Dividing Line Between Grouped Records...

I have a simple asp page which throws out a list of products on order by Customer X.

As the page writes out the lines, I want to add a Horizontal Rule when the ProductName changes .... i.e. Code:

View Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved