%
accessdb="/sondages/votestan.mdb"
cn="driver={Microsoft Access Driver (*.mdb)};"
cn=cn & "dbq=" & server.mappath(accessdb)
Set db = Server.CreateObject("ADODB.Connection")
db.Open cn,"",""
' Là je teste si l'internaute a voté pour un des deux formulaires
IF request.Form("VOTE1")<>"" OR request.Form("VOTE2")<>"" Then
' Il a voté
' Maintenant on va tester si il a déjà voté pour la question (en question)
accessdb="/sondages/votestan"
set rs = server.createobject("ADODB.Recordset")
sql = "select ip from VOTES"
sql = sql + " where ip ='" & Request.ServerVariables("REMOTE_ADDR") & "' and IDQUESTION=" & Request.Form("question")
rs.Open sql, db
if rs.eof then
rs.close
Set rs=Nothing
' Il n'a pas encore voté pour cette question
' donc on va mettre à jour les deux tables (QUESTIONS et VOTES)
'On commence par la Table VOTES
sql = "insert into VOTES (IDQUESTION,IP,SELECTION,DATEVOTE) "
sql = sql & "values (" & Request.Form("QUESTION") & ",'" & Request.ServerVariables("REMOTE_ADDR") & "',"
sql = sql & Request.Form("a_input") & ",#" & DATE() & "#)"
db.execute(sql)
'Puis par la table QUESTIONS
sql = "UPDATE QUESTIONS SET SELECTION" & REQUEST.FORM("a_input") & "=SELECTION" & REQUEST.FORM("a_input") & "+ 1"
sql = sql & " Where IDQUESTION=" & Request.Form("question")
db.execute(sql)
Else
rs.close
Set rs=Nothing
END IF
END IF
%>
Archives Atlantique 1978
|
|
Les Données Cycloniques de 1978
Résumé
Individuel des Tempêtes
Vents en
noeuds, pression en millibars, catégorie Saffir-Simpson.
|
#
|
Noms |
Dates |
Vents |
Pres |
Cat |
|
1
|
Tempête
Subtropicale 1 |
18-23
JAN
|
40
|
1002
|
-
|
|
2
|
Tempête
Tropicale AMELIA |
30
JUIL- 1 AOUT
|
45
|
1005
|
-
|
|
3
|
Tempête
Tropicale BESS |
5-
8 AOUT
|
45
|
1005
|
-
|
|
4
|
Ouragan
CORA |
7-12
AOUT
|
80
|
980
|
1
|
|
5
|
Tempête
Tropicale DEBRA |
26-29
AOUT
|
50
|
1000
|
-
|
|
6
|
Ouragan
ELLA |
30
AOUT- 5 SEP
|
120
|
956
|
4
|
|
7
|
Ouragan
FLOSSIE |
4-16
SEP
|
85
|
976
|
2
|
|
8
|
Ouragan
GRETA |
13-20
SEP
|
115
|
947
|
4
|
|
9
|
Tempête
TropicaleHOPE |
12-21
SEP
|
55
|
987
|
-
|
|
10
|
Tempête
Tropicale IRMA |
2-
5 OCT
|
45
|
1001
|
-
|
|
11
|
Tempête
Tropicale JULIET |
7-11
OCT
|
45
|
1006
|
-
|
|
12
|
Ouragan
KENDRA |
28
OCT- 3 NOV
|
70
|
990
|
1
|
Détails
Individuels des Tempêtes
 |
Tempête
Subtropicale 1
(18-23 JAN)
Vents
maxi: 40
Pres. mini: 1002
|
.gif) |
Tempête
Tropicale AMELIA
(30 JUIL-01 AOUT)
Vents
maxi: 45
Pres. mini: 1005
|
.gif) |
Tempête
Tropicale BESS
(05-08 AOUT)
Vents
maxi: 45
Pres. mini: 1005
|
.gif) |
Ouragan
CORA
(07-12 AOUT)
Vents
maxi: 80
Pres. mini: 980
Catégorie: 1
|
.gif) |
Tempête
Tropicale DEBRA
(26-29 AOUT)
Vents
maxi: 50
Pres. mini: 1000
|
.gif) |
Ouragan
ELLA
(30 AOUT-05 SEP)
Vents
maxi: 120
Pres. mini: 956
Catégorie: 4
|
.gif) |
Ouragan
FLOSSIE
(04-16 SEP)
Vents
maxi: 85
Pres. mini: 976
Catégorie: 2
|
.gif) |
Ouragan
GRETA
(13-20 SEP)
Vents
maxi: 115
Pres. mini: 947
Catégorie: 4
|
.gif) |
Tempête
Tropicale HOPE
(12-21 SEP)
Vents
maxi: 55
Pres. mini: 987
|
.gif) |
Tempête
Tropicale IRMA
(02-05 OCT)
Vents
maxi: 45
Pres. mini: 1001
|
.gif) |
Tempête
Tropicale JULIET
(07-11 OCT)
Vents
maxi: 45
Pres. mini: 1006
|
.gif) |
Ouragan
KENDRA
(28 OCT-03 NOV)
Vents
maxi: 70
Pres. mini: 990
Catégorie: 1
|
Document
original fourni par ,
traduit par le webmaster
|

|
| Shopping |
| |
| |
Le 12 septembre
1928

18.68 €
|
|
| |
|
 |
|
| |
|
| |
| Abris Sûrs
|
| |
| |
Recherchez
l'abri cyclonique le plus proche de chez vous!
|
|
| |
|
 |
|
| |
|
|
| |
| Pronostics |
| |
| |
<%LENUMERODEMAQUESTION=1 ' (par exemple)
set rs = server.createobject("ADODB.Recordset")
sql = "select question from questions Where IDQUESTION=" & LENUMERODEMAQUESTION
' LENUMERODEMAQUESTION est le numéro que tu auras choisi
rs.Open sql, db
QUESTION=rs("question")
rs.Close
Set rs=Nothing
' Maintenant tu formates ton formulaire %>
|
|
| |
|
 |
|
| |
| Archives |
|
|
 |
|
|