473,378 Members | 1,471 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

Save score into database

1
Hi u all,

i've made a 10 paged asp quiz. at the end of the quiz u will recieve a score.
the script is shown below. my answer = how can i save this score into a database?

<!-- #include file="functions.asp" -->

<% function content %>


<%
session.timeOut = 45
call storeAnswers()
%>

<!-- Begin Sitestat4 code -->
<script language="JavaScript1.1">
<!--
function sitestat(ns_l){ns_l+="&ns__t="+new Date().getTime();ns_pixelUrl=ns_l;
if(document.images){ns_1=new Image();ns_1.src=ns_l;}else
document.write("<img src="+ns_l+" width=1 height=1>");}
sitestat("kennistest");
//-->
</script><noscript>
<img src="kennistest" width=1 height=1>
</noscript>
<!-- End Sitestat4 code -->


<span class="question" >Score</span>
<p>
<% select case calculateScore() %>
<% case 1,2,3,4,5 %>
Jammer, u heeft maar <% =calculateScore() %> vraag/vragen goed beantwoord.
<br /><br />
<b>Hou uw marktkennis op peil!</b>
<br /><br />
Neem nu een <a href="/aanmelden/inschrijven.asp" style="text-decoration:none;" ><strong>gratis</strong></a> bla bla bla
</p>
<% case else %>
Gefeliciteerd, u heeft <% =calculateScore() %> vragen goed beantwoord!
<br /><br />
<b>Wilt u uw marktkennis op peil houden? </b>
<br /><br />
Neem dan nu een <a href="/aanmelden/inschrijven.asp" style="text-decoration:none;" ><strong>gratis</strong></a> bla bla bla<% end select %>

<!--
U heeft <b class="score" ><% =(10-calculateScore()) * 10 %>%</b> van de vragen foutief beantwoord.
</p>
oude score
<p>
Uw marktkennis is te beoordelen met rapportcijfer<sup>*</sup> <b class="score" ><% =calculateScore() %></b>.
</p>

Help me out if u can.
May 24 '07 #1
1 1669
jhardman
3,406 Expert 2GB
Welcome to the scripts DN. Here is a useful tutorial that walks you thru the basic steps of connecting to and manipulating a database using ADO (a built-in active-X component).

Jared
May 24 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: hazz | last post by:
if i have a table record called Rule 1 with 1. table name 2. table column name 3. operator (>,< =) 4. value (0 to n) 5. score how could I create code to create a rule automatically so...
6
by: ShihChengYu | last post by:
Dear All: I encounter one problem when I want to implement my thought. My thought is that user want to search a record of someone but maybe user would type wrong name or spell name wrong. I wish...
54
namcintosh
by: namcintosh | last post by:
First of all, here is my program: #include <iostream> #include <conio> using namespace std; //Function prototype void getscore(int&, int&, int&, int&, int&); void findLowest (int, int,...
3
by: I Hate My Computer | last post by:
Hi, I was wanting to make a game with the ability to save the level and the score. I would also like it to be able to load that saved game. Lastly I would like it to be able to save a high score...
5
by: eliana82 | last post by:
I have problems calculating score percentages within groups. I have created a boat program in access where the information provided is name, team, boat and score. The first query I've done is...
5
by: paitoon | last post by:
Hello, I have problem to add vote to the data base . In the form i have radio button to choose to rate the score 1 2 3 4 5 ....and when i click to submit this the score in database is changed by...
4
by: gaya12 | last post by:
In ASP and using Ms access. I have a form which asks users to input some details. The details entered by the user will stored in a access database and also there is a calculation based on the...
1
by: Flanders | last post by:
I have developed a small arcade game with the help of a few VB books. A scoring system was implemented in the design of the game but I as hoping that some one would be able to instruct me on how...
6
by: Mblade | last post by:
O.k. guys trying to teach myself in VB6 to start i am writing a math program for my daughter but i am having trouble with my code to keep score. the program is two random numbers that pop up in 2...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.