Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Help Me
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Help Me

 Post Reply Post Reply
Author
sharmasumit83 View Drop Down
Newbie
Newbie
Avatar

Joined: 03 May 2003
Location: India
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote sharmasumit83 Quote  Post ReplyReply Direct Link To This Post Topic: Help Me
    Posted: 03 May 2003 at 12:27am

Dear Sirs,

I am Sumit Sharma, from India.

I am beginner in ASP.

I have made a asp file in which database is a MS access.

I have written the following script, But it was showing the all data which is in database file,
I want only 10 data, display one time, and next 10 data in another page and so on.

SCRIPT:
****************************************************************
<% Option Explicit %>
<html><head><title>The Cafeteria Menu</title></head>
<body bgcolor="Yellow">
<h1> The Cafeteria Menu </h1>
<%
Dim Connect, OnMenu
Set Connect = Server.CreateObject("ADODB.Connection")
Connect.Open  "Menu"
Set OnMenu = Connect.Execute(_
    "SELECT * FROM Menu ORDER BY Date")
%>
<table border=1 width=100%
bordercolor=Red cellspacing=0 cellpadding=5>
<tr><th  bgcolor="#99FFCC" align=left>Date</th>
<th  bgcolor="#99FFCC" align=left>Main Course</th>
<th  bgcolor="#99FFCC" align=left>Fruit</th>
<th  bgcolor="#99FFCC" align=left>Vegetable</th>
<th  bgcolor="#99FFCC" align=left>Desert</th>
</tr>
<%
Do while not onMenu.EOF %>
<tr><td><%=onMenu("Date")%></td>
<td><%=onMenu("Maincourse")%></td>
<td><%=onMenu("Fruit")%></td>
<td><%=onMenu("Vegetable")%></td>
<td><%=onMenu("Dessert")%></td></tr>
<% onMenu.MoveNext
loop %>
</table>
</body>
</html>
*************************************************************************

Please can body help me to complete this task for me.

I am waiting for your reply.

Thanking you, Sir.

Yours faithfully,
Sumit Sharma.
Web: http://www.sumitinfoway.tk
http://www.sumitsharma.tk

 

Back to Top
MorningZ View Drop Down
Senior Member
Senior Member
Avatar

Joined: 06 May 2002
Location: United States
Status: Offline
Points: 1793
Post Options Post Options   Thanks (0) Thanks(0)   Quote MorningZ Quote  Post ReplyReply Direct Link To This Post Posted: 03 May 2003 at 5:44am
Contribute to the working anarchy we fondly call the Internet
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.