Welcome, Guest. Please Login or Register.
July 01, 2025, 09:05:51 AM
Home Help Search Log in Register
News: SMF is the next generation in forum software, almost completely re-written from the ground up, make sure you don't fall for cheap imitations that suffer from feature bloat!

YaBB SE Community  |  English User Help  |  English Help  |  Members Database « previous next »
Pages: [1] Reply Ignore Print
Author Topic: Members Database  (Read 313 times)
darthpaul
Noobie
*
Posts: 36


Have It!

ICQ - 5366806paulremnant@hotmail.com WWW
Members Database
« on: October 15, 2003, 04:23:08 PM »
Reply with quote

YaBB SE Version: 1.5.4
PHP Version: 4.3.2
MySQL Version: 4.0.x
Server Platform: Unix, Linux, or BSD
Link to Forum: http://www.fishcrazy.co.uk/forum/index.php

Problem Description:
When you view the member list on yabb by default the all list seems to take the default order of the members database. At some point my members default order seems to have been resorted alphabetically.

When I do a browse on phpMyAdmin the first order it shows is how it displays on the memberlist. Is there anyway I can re-order the database so it always shows in registered date order which is how it originally displayed a long time ago.
Logged

Interested in fishkeeping? come see my popular site www.fishcrazy.co.uk
[Unknown]
Global Moderator
YaBB God
*****
Posts: 7830


ICQ - 179721867unknownbrackets@hotmail.com WWW
Re:Members Database
« Reply #1 on: October 16, 2003, 02:26:02 AM »
Reply with quote

Find:
$query = "SELECT memberName,realName,websiteTitle,websiteUrl,posts,memberGroup,ICQ,AIM,YIM,MSN,emailAddress,hideEmail,ID_MEMBER FROM {$db_prefix}members WHERE 1 LIMIT $start,$MembersPerPage";

Replace:

$query = "SELECT memberName,realName,websiteTitle,websiteUrl,posts,memberGroup,ICQ,AIM,YIM,MSN,emailAddress,hideEmail,ID_MEMBER FROM {$db_prefix}members WHERE 1 LIMIT $start,$MembersPerPage ORDER BY dateRegistered";

-[Unknown]
Logged
darthpaul
Noobie
*
Posts: 36


Have It!

ICQ - 5366806paulremnant@hotmail.com WWW
Re:Members Database
« Reply #2 on: October 16, 2003, 02:46:30 PM »
Reply with quote

You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'ORDER BY dateRegistered' at line 1
File: /home/darthp/public_html/forum/Sources/Memberlist.php
Line: 327

Anyone any clues why just adding an order cause this error?
« Last Edit: October 16, 2003, 09:53:34 PM by darthpaul » Logged

Interested in fishkeeping? come see my popular site www.fishcrazy.co.uk
[Unknown]
Global Moderator
YaBB God
*****
Posts: 7830


ICQ - 179721867unknownbrackets@hotmail.com WWW
Re:Members Database
« Reply #3 on: October 17, 2003, 06:14:29 AM »
Reply with quote

I'm an idiot.  I meant:

$query = "SELECT memberName,realName,websiteTitle,websiteUrl,posts,memberGroup,ICQ,AIM,YIM,MSN,emailAddress,hideEmail,ID_MEMBER FROM {$db_prefix}members ORDER BY dateRegistered LIMIT $start,$MembersPerPage";

-[Unknown]
Logged
Pages: [1] Reply Ignore Print 
YaBB SE Community  |  English User Help  |  English Help  |  Members Database « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 1.020 seconds with 20 queries.