Forum Menu - Total No. Of Views(for Specific Topic)
every time a user clicks on a record its noViews is updated, and similarly the noReplies is incremented by 1 if there is a reply to a record(question). Code:
View Repliesevery time a user clicks on a record its noViews is updated, and similarly the noReplies is incremented by 1 if there is a reply to a record(question). Code:
View RepliesMy web application uses a custom-generated menu system which is tailored for each user individually when they log in, based on their permissions. I've got this working very quickly on the server using ASP, and the menus are just included into each page as it's served out.
The problem is that the menus take up a fair amount of bandwidth (about 12 seconds over 28.8 modem - not an uncommon dial-up speed in this part of the world). I can't really simplify the menus any further, so the only thing left to me is to somehow cache the menus on the client, but I can't figure out a way to do it.I've thought about getting the asp menu builder program to write out the menu item data to a .js script file and then build the menus on the client using the cached .js file, but this is clumsy, and if the user's machine is low-spec it could take longer to build the menus than download them.
A bit of an odd request. I'm in my third and final year at university, and part of an assignment requires obtaining developers' perspective on web languages. If anyone has done at least one of the languages in the subject title (ASP/ASP.NET/PHP), I would be eternally grateful if you could pop to (and also send any other web developers you know to).
Theres a maximum of 14 short questions (depending on answers to the other questions), all optional, just fill out as much as you can be bothered with, then click submit a few times until its saved.
I am working on a very complex projet that has several SQL views and I want to execute the view so that the client can view the data from direferent angles. I need a sample code that I can use as a starting point.
View Replies View RelatedQuick query, does anyone know how I would go about appending one table to another dynamically?
For Instance I have Table A which holds office A staff And Table B which holds office B staff.
Both tables have an identical structure but hold different data. I want to be able to view them as one table. This needs to work dynamically as both tables will be updated regularly.
does frame support pop out menu? Thanks....
View Replies View RelatedCan any one help with code for form menu in which sub menu appear on selecting the main menu. This is one field of an access database to be submitted by user.. Now I have code only for selecting from main menu. Code:
View Replies View RelatedI have been asked to design a page where users login.
The users list is accessable from a drop down list which is taken from an SQL server table
The user, when selected then click next to login to a page where their name, associated with thier username is displayed.
Now I am a total newbie to this, can anyone guide me in the right direction?
Im trying to figure out how i can do the following:
I used a search script to select data from the database now each record has a figure such eg. £125.56 and so you can end up with rows like:
£125.56
£12.34
£.456.76
What I want to be able to do is have a select box to the right hand side where you select certain records and if possible at the bottom will have a live update showing the total of the selected items.
Does anybody know of a script?
I am trying to add the price and shipping to equal the total price and display it in a table(receipt) I am able to get the price and shipping and handling to write to the page, but not sure how to add them together to get the total price:
The below code gives me $40.00$ 3.00 I want it to show as $43.00 ($40 + $3.00)if they ordered 500 business cards or $75.00 ($72 + $3.00)if they ordered 100 business cards.
<%
quantity = Request.QueryString("quantity")
If (quantity = "500") Then
price = "$40.00"
Else
price = "$72.00"
End If
%>
<%
shipping = "$ 3.00"
total = (price + shipping)
%>
I have an asp page that gives records that shows number of days like so:
<% Days = RSItin("Depart") - RSItin("Arrive")%>
<% response.write days %> days
How do I get the total number of days - ie:
Record 1 2 days
Record 2 4 days
TOTAL 6 days
I have a list of data in a database(access). How can I get the total rows in the database?
View Replies View RelatedI have a column which i store my totals (price) and i want to sort the records by total.
simple way of ordering as ORDER BY doesn't give correct solution since it sort according to the first number. like this:
1
24465
27184654
i want to sort it like
27184654
24465
1
do you know how?
I have a script that writes out a report to a webpage with data pulled from a mssql database.
I am trying to figure out how to keep a running total for one of the columns of data.
For example, in the users column, if Steve Smith appears 172 times, I want to have a total at the bottom of the report that says:
Steve Smith : 172
Debbie Brown: 100
Brian Katich: 42
etc
Any one have any suggestions on the best to add up the values of a certain fields that
are displayed in a table, like below:
Hours Actual Annual Sick Compassionate Other Reason
8 0 8 0 0 0 leave
8 0 0 8 0 0 flu
--------------------------------------------------------------------------------
16 0 8 8 0 0
I have an web application that allows a user to order items online. The user selects an item from a list on the order items page and enters the quantity. The quantity and unit price of the item is calculated on the order summary page. And than on the process order page, the calculated total from the order summary page is represented as the extended total for that item.
My problem is when that same user in a single user session orders another item, the extended total for the second item is not being added to the extended total of the first item. In other words, I would like to know the code to keep a running total for this user. I keep getting only the extended total for the current item exclusive of the previous item in that user session.
I need to be able to subtract the total quantity of a product when someone places an order. I'm trying to get my head around this; what's the strategy for doing something like this?
ASP SQL
So let's say I have a "Thank You" page at the end of the purchase. I have a table with a list of product Ids and a column of quantities left.
If I understand your post, I'm picturing this being a stored procedure that looks at the total quantities from my table that contains all the product quantities. Let's say product 1a has a quantity of 5 and product 2a has a quantity of 6.
A bit fuzzy here but what would a stored procedure look like that is able to update and step through all the items that were purchased?
I am using a select sum(tot_daily) as total hours ...it calculates the time incorretly...
Example:
ID | Tot_hrs | Person
----------------------
1 5.45 A
2 5.45 A
3 5.45 A
The total hours should be 17 hours 15 mins...but the result comes as 16.35.... Is there a way to calculate it as 17.15 in db level in a select statement
i have a small issue with displaying total
heres what i need to do
if its 11 * 7 =77
i need to print 77.00
if its 7.95 * 3 =23.85 then its right
so when its whole number i want to put a .00
is this possible
here is my code for it
Code:
i dont know if this should be a mysql question or a asp question...
i have a database that stores all the orders and each orders total. How can i make it so that i can add all the order totals together, to get a final total
Im using mysql.
i am developing a hosting directory web site on this site there will be the links of hosting websites, i want that when user click on a particular website link it will be recorded in the database how it could be done.
View Replies View Relatedi have some problem in showing data. I have two tables . First table(containing Hosting categories). Second table(Containg catagories data like l,keyword,description.....etc). I want to display catgories names from first table and then diffrent catagories total records from second table, like this
ASP.NETHosting(10)
Linux Hosting(20)
Windows hosting(13)
:
:
:
etc
i need some help with my asp project. there few text field . for user to enter in amount. and i need the system to auto calculate the total everytime user finish enter amount in a text field. another problem is how can i make the text field accept number only?
View Replies View Relatedhow can i get a total number of filtered records? what's the code?
View Replies View Relatedtell me the syntax for adding string numbers together to give a total? Code:
strNumber1 = 4
strNumber2 = 2
strTotal = strNumber1 + strNumber2
The above code gives the result 4+2
If I change the strtotal to strNumber1 * strNumber2 it gives the result 8
If I change the strtotal to strNumber1 / strNumber2 it gives the result 2
If I change the strtotal to strNumber1 - strNumber2 it gives the result 2
So what do I use to get it to add the numbers together .
I am creating a simple one page blogger for page visitors to 'rant' so to speak... This is a remake of the old one and I've got about 49 pages of 5 entries each from the old one.
I need to make different dynamic pages using querystrings in the url which is simple enough. The page numbers are dynamic based upon totall records in the 'rants' table divided by 5 entries per page. Previously I've used a 'for next' statement nested in an 'if then' to actually go throuch each record and count it but it taxes the server while proccessing other parts of the page.
is there a SQL command that I can use for my ODBC connection to get the total number or rows in the 'rants' table?
is any on eone out there who can help me with my asp script. upto now i have managed create my database using MSaccess and connected my database to the web server. Code:
View Replies View RelatedI want to do a running total query , here is what i want :
I want the running total like this:
i am developing a hosting directory web site on this site there will be the links of hosting websites, i want that when user click on a particular website link it will be recorded in the database how it could be done.
View Replies View RelatedI have y pic's on the server and each time someone visits the site I want to display x of them randomly.
View Replies View RelatedI want to display something strictly if the value of pid = 4, except anything after this, for example index.asp?pid=4&nid=3.
Still the if statement continues to display I am sure because pid=4 still exists is there a method to be strict, for example not & ....
I need to calculate a total based on fields in a repeat region, these values are stored in an SQL db, all are numeric and written in ASP.fields are
TOTAL_COST VAT GRANDTOTAL (Page selects records based on
field parameter and displays in a repeat region)
At bottom of page need to show total sum like
TOTAL_COST(sum of above)
VAT(sum of above)
GRANDTOTAL(sum of above)
i have some problem in showing data. I have two tables
First table(containing Hosting categories)
Second table(Containg catagories data lik
url,keyword,description.....etc)
I want to display catgories names from first table and then diffrent catagories
total records from second table, like this
ASP.NETHosting(10)
Linux Hosting(20)
Windows hosting(13)