Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Soring Database Enteries (Down to up)
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Soring Database Enteries (Down to up)

 Post Reply Post Reply
Author
neotrix View Drop Down
Mod Builder Group
Mod Builder Group
Avatar

Joined: 09 November 2003
Location: Pakistan
Status: Offline
Points: 433
Post Options Post Options   Thanks (0) Thanks(0)   Quote neotrix Quote  Post ReplyReply Direct Link To This Post Topic: Soring Database Enteries (Down to up)
    Posted: 19 January 2005 at 2:06pm

Originally posted by In my source code I In my source code I wrote:

rspage.MoveLast
While NOT rspage.BOF

              ' ... do something...

 rspage.MovePrevious
 
wend
 
===============================================
 
This is the only soulution that comes to my mind for print the records of a table from bottom to top. But it results this:
 
Originally posted by My IIS My IIS wrote:

Error Type:
Microsoft OLE DB Provider for ODBC Drivers (0x80040E24)
Rowset does not support fetching backward.
/neotrix/Control_Room/default.asp, line 38
 

Back to Top
dj air View Drop Down
Senior Member
Senior Member
Avatar

Joined: 05 April 2002
Location: United Kingdom
Status: Offline
Points: 3627
Post Options Post Options   Thanks (0) Thanks(0)   Quote dj air Quote  Post ReplyReply Direct Link To This Post Posted: 19 January 2005 at 2:48pm
why do you want to do it back wards like that. why not use the ORDER BY xx DESC;
Back to Top
neotrix View Drop Down
Mod Builder Group
Mod Builder Group
Avatar

Joined: 09 November 2003
Location: Pakistan
Status: Offline
Points: 433
Post Options Post Options   Thanks (0) Thanks(0)   Quote neotrix Quote  Post ReplyReply Direct Link To This Post Posted: 19 January 2005 at 3:14pm
Actually, I am making a blog type thing. When ever I make a new post, I want it to be printed on the top. Instead, it appears on the bottom of the page. And I donot understand what "ORDER BY xx DESC;" means. Confused
Back to Top
dj air View Drop Down
Senior Member
Senior Member
Avatar

Joined: 05 April 2002
Location: United Kingdom
Status: Offline
Points: 3627
Post Options Post Options   Thanks (0) Thanks(0)   Quote dj air Quote  Post ReplyReply Direct Link To This Post Posted: 19 January 2005 at 3:26pm
does each blog entry has a unique ID (auto number).

if so you can add this to the end of the query


ORDER BY tablename.field DESC;


tablename = the table the blog is in.

field = the auto Field/Unique value

DESC= order them from newest to oldest .




Edited by dj air - 19 January 2005 at 3:27pm
Back to Top
neotrix View Drop Down
Mod Builder Group
Mod Builder Group
Avatar

Joined: 09 November 2003
Location: Pakistan
Status: Offline
Points: 433
Post Options Post Options   Thanks (0) Thanks(0)   Quote neotrix Quote  Post ReplyReply Direct Link To This Post Posted: 19 January 2005 at 3:31pm
yep it dose have a uniqe ID. Hold on let me try it.
Back to Top
neotrix View Drop Down
Mod Builder Group
Mod Builder Group
Avatar

Joined: 09 November 2003
Location: Pakistan
Status: Offline
Points: 433
Post Options Post Options   Thanks (0) Thanks(0)   Quote neotrix Quote  Post ReplyReply Direct Link To This Post Posted: 19 January 2005 at 3:35pm
yeyyy!!!!!!!!!!!!!!!!!!! Tongue
 
it worked!!!!
 
Wooho!!! Big smile
 
Thanks Sir!!! You're the best! Big smile
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.