Torna indietro   Hardware Upgrade Forum > Software > Programmazione

Tastiera gaming MSI GK600 TKL: switch hot-swap, display LCD e tre modalità wireless
Tastiera gaming MSI GK600 TKL: switch hot-swap, display LCD e tre modalità wireless
MSI FORGE GK600 TKL WIRELESS: switch lineari hot-swap, tripla connettività, display LCD e 5 strati di fonoassorbimento. Ottima in gaming, a 79,99 euro
DJI Osmo Pocket 4: la gimbal camera tascabile cresce e ha nuovi controlli fisici
DJI Osmo Pocket 4: la gimbal camera tascabile cresce e ha nuovi controlli fisici
DJI porta un importante aggiornamento alla sua linea di gimbal camera tascabili con Osmo Pocket 4: sensore CMOS da 1 pollice rinnovato, gamma dinamica a 14 stop, profilo colore D-Log a 10 bit, slow motion a 4K/240fps e 107 GB di archiviazione integrata. Un prodotto pensato per i creator avanzati, ma che convince anche per l'uso quotidiano
Sony INZONE H6 Air: il primo headset open-back di Sony per giocatori
Sony INZONE H6 Air: il primo headset open-back di Sony per giocatori
Il primo headset open-back della linea INZONE arriva a 200 euro con driver derivati dalle cuffie da studio MDR-MV1 e un peso record di soli 199 grammi
Tutti gli articoli Tutte le news

Vai al Forum
Rispondi
 
Strumenti
Old 13-03-2004, 13:06   #1
massimo67
Member
 
L'Avatar di massimo67
 
Iscritto dal: Nov 2003
Città: Verona
Messaggi: 162
Paginazione con database Acess

ho uno script per delle news o articoli, con la possibilità di mettere anche immagini come foto, ecc.

tutto funziona, vorrei però che dopo 5 news mi comparisse la scritta "pagina sucessiva" e "pagina precedente".

Ho provato lo script Paginazione di Creamweb.it ma senza successo.

vi posto il codice della pagina in questione, mi aiutate per favore

<% response.buffer=true%>
<% Set Connect = Server.CreateObject("ADODB.Connection")
Connect.Open "driver={Microsoft Access Driver (*.mdb)};dbq=" & Server.MapPath("/mdb-database/news/db.mdb")&";"
Set objFSO = Server.CreateObject("Scripting.FileSystemObject")
Set objFolder = objFSO.GetFolder("d:\inetpub\webs\fansclubchievoit\public\news")
strImageFolder="/public/news/images/"
folder1 = strImageFolder
folder2 = Server.MapPath(folder1)
Set files = Server.CreateObject("Scripting.FileSystemObject")
If Not files.FolderExists(folder2) Then
files.CreateFolder(folder2)
End If
Set objfolder = files.getFolder(folder2)
%>

<link href="public/news/style.css" rel="stylesheet" type="text/css">

<%
set rsOldnews = connect.execute("select id, rubrik, ingress, bild, bildtext, datum, forfattare, eforfattare, nyheter from nyheter where visa=1 order by datum desc")
set rsantal = connect.execute ("select antal from antal")
intAntal=rsantal("antal")

alignment="right"
antal=0

do until rsoldnews.eof or antal = intantal

if alignment = "left" and rsoldnews("bild") <> "no_image.jpg" then
alignment ="right"
else
if rsoldnews("bild") <> "no_image.jpg" then
alignment ="left"
end if
end if



if rsoldnews("bild")="no_image.jpg" then
%>

<body topmargin="0">
<table width="95%" border="0" align="center" cellpadding="3" cellspacing="3" class="ruta">
<tr>
<td valign="top" class=nyhetsrubrik><% =rsOldnews("Rubrik") %></td>
</tr>
<tr>
<% if rsoldnews("ingress") >"" then %>
<td valign="top"><strong> <font size="1">
<% =rsOldnews("ingress") %>
</font></strong><br><br>
<% =rsOldnews("nyheter") %></td>
<% else %>
<td valign="top"><% =rsOldnews("nyheter") %></td>
<% end if %>

</tr>
<tr>
<td valign="top"><font size="1"><strong>
<% =FormatDateTime(rsOldnews("Datum"),2) %>
</strong> <a href="mailto:<%=rsOldnews("eforfattare")%>">
<strong> </strong></a> </font></td>
</tr>
</table>
<br>
<br>
<% end if
if alignment="left" and rsoldnews("bild") <> "no_image.jpg" then
%>
<table width="95%" border="0" align="center" cellpadding="3" cellspacing="3" class="ruta">
<tr valign="top">
<td colspan="2" class=nyhetsrubrik><% =rsOldnews("Rubrik") %></td>
</tr>
<tr valign="top">
<td> <div align="center">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><img src="<% =strImageFolder & rsOldnews("Bild") %>"></td>
</tr>
<tr>
<td><b><font size="1">
<% =rsOldnews("Bildtext") %>
</font></b></td>
</tr>
</table>
</div>
<div align="center"> <b><font size="1"> </font></b> </div></td>
<% if rsoldnews("ingress") >"" then %>

<td width="100%"> <font size="1"><strong>
<% =rsOldnews("ingress") %>
</strong></font><br><br>
<% =rsOldnews("Nyheter") %> </td>
<% else %>
<td width="100%"> <% =rsOldnews("Nyheter") %> </td>
<% end if %>

</tr>
<tr>
<td valign="top" colspan=2 ><font size="1"><strong>
<% =FormatDateTime(rsOldnews("Datum"),2) %>
&nbsp;</strong> <strong> </strong> </font></td>
</tr>


</table>
<br>
<br>
<% end if
if alignment="right" and rsoldnews("bild") <> "no_image.jpg" then
%>
<table width="95%" border="0" align="center" cellpadding="3" cellspacing="3" class="ruta">
<tr>
<td colspan="2" valign="top" class=nyhetsrubrik><% =rsOldnews("Rubrik") %></td>
</tr>
<tr>
<% if rsoldnews("ingress") >"" then %>

<td width="100%" valign="top"> <font size="1"><strong>
<% =rsOldnews("ingress") %>
</strong></font><br><br>
<% =rsOldnews("Nyheter") %> </td>
<% else %>
<td width="100%" valign="top"> <% =rsOldnews("Nyheter") %> </td>
<% end if %>

<td valign="top"> <table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><img src="<% =strImageFolder & rsOldnews("Bild") %>"></td>
</tr>
<tr>
<td><b><font size="1">
<% =rsOldnews("Bildtext") %>
</font></b></td>
</tr>
</table></td>
</tr>
<tr>
<td valign="top" colspan=2 ><font size="1"><strong>
<% =FormatDateTime(rsOldnews("Datum"),2) %>
&nbsp; </strong><strong> </strong> </font></td>
</tr>


</table>
<br>
<br>
<%

end if
antal=antal+1

rsOldnews.movenext
loop


rsOldnews.close
set rsoldnews = nothing
rsantal.close
set rsantal = nothing
%>



GRAZIE 1000
massimo67 è offline   Rispondi citando il messaggio o parte di esso
 Rispondi


Tastiera gaming MSI GK600 TKL: switch hot-swap, display LCD e tre modalità wireless Tastiera gaming MSI GK600 TKL: switch hot-swap, ...
DJI Osmo Pocket 4: la gimbal camera tascabile cresce e ha nuovi controlli fisici DJI Osmo Pocket 4: la gimbal camera tascabile cr...
Sony INZONE H6 Air: il primo headset open-back di Sony per giocatori Sony INZONE H6 Air: il primo headset open-back d...
Nutanix cambia pelle: dall’iperconvergenza alla piattaforma full stack per cloud ibrido e IA Nutanix cambia pelle: dall’iperconvergenza alla ...
Recensione Xiaomi Pad 8 Pro: potenza bruta e HyperOS 3 per sfidare la fascia alta Recensione Xiaomi Pad 8 Pro: potenza bruta e Hyp...
Alcune varianti dei futuri Samsung Galax...
Il ridimensionamento di OnePlus in Europ...
Il cofondatore di Netflix ha lasciato l'...
ASUS porta in Italia il nuovo Zenbook Du...
Assassin's Creed: Black Flag Resynced, s...
Xbox Game Pass cambierà: tra le n...
I nuovi Surface Pro e Laptop sono vicini...
OnePlus ci riprova con la fascia bassa: ...
La Top 10 delle offerte Amazon del weeke...
XGIMI MoGo 2 Pro a 339€: Google TV con N...
Forum IT & Intelligence 2026: dall'A...
iPhone 16e per la prima volta a meno di ...
Stop Killing Games: Ross Scott convince ...
Annunciata la tuta di volo di Vast che s...
Vast presenta il nuovo Large Docking Ada...
Chromium
GPU-Z
OCCT
LibreOffice Portable
Opera One Portable
Opera One 106
CCleaner Portable
CCleaner Standard
Cpu-Z
Driver NVIDIA GeForce 546.65 WHQL
SmartFTP
Trillian
Google Chrome Portable
Google Chrome 120
VirtualBox
Tutti gli articoli Tutte le news Tutti i download

Strumenti

Regole
Non Puoi aprire nuove discussioni
Non Puoi rispondere ai messaggi
Non Puoi allegare file
Non Puoi modificare i tuoi messaggi

Il codice vB è On
Le Faccine sono On
Il codice [IMG] è On
Il codice HTML è Off
Vai al Forum


Tutti gli orari sono GMT +1. Ora sono le: 17:17.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
Served by www3v