Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Help Groups for Snitz Forums 2000 Users
 Help: General / Classic ASP versions(v3.4.XX)
 pending members error
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

Brett Alcock
New Member

65 Posts

Posted - 24 September 2004 :  08:39:55  Show Profile
Snitz 3.4.02, apachi, linux, php, ChillisoftASP, mySQL, www.grsuk.com/info.php

I am getting the following error when trying to view a second page of pending members?

ADODB.Recordset.1 error '80004005'

SQLState: 42000
Native Error Code: 1064
[TCX][MyODBC]You have an error in your SQL syntax near '; LIMIT 15, 15' at line 1

/forum/admin_accounts_pending.asp, line 262
I've searched these forums for various things like '80004005 pending' but can't find anything on this. I'll try and mod it to print the SQL string out when accessing the second page, then post it here, but in the mean time if anyone has any idea please let me know.

Edited by - Brett Alcock on 24 September 2004 08:44:34

Brett Alcock
New Member

65 Posts

Posted - 24 September 2004 :  09:06:26  Show Profile
Ok here is the sql string that causes the error:
strSql1= SELECT COUNT(MEMBER_ID) AS PAGECOUNT
strSql2= FROM FORUM_MEMBERS_PENDING
strSql3= ORDER BY MEMBER_ID ASC;
strSql4= LIMIT 15, 15
 
strAll= SELECT M_NAME, M_EMAIL, MEMBER_ID, M_DATE, M_IP, M_KEY,
M_APPROVE FROM FORUM_MEMBERS_PENDING ORDER BY MEMBER_ID ASC; LIMIT 15, 15
I'm not sure on my SQL syntax, but can one actually have something after the terminating semicolon? the same string for page one does not have the LIMIT 15, 5 after the semicolon and works fine.

Only other odd things about this page was negative days etc, but sorted that with a fix from here a few moments ago. I can also see that date/times can have 60 seconds (rather than 59-00), which seems to force days pending to 0 (ideas on a fix for that would be useful).
Go to Top of Page

laser
Advanced Member

Australia
3859 Posts

Posted - 24 September 2004 :  09:08:12  Show Profile
I reckon kill the ;
Go to Top of Page

Brett Alcock
New Member

65 Posts

Posted - 24 September 2004 :  09:15:01  Show Profile
Yep just moved ";" to the end and all works fine, Thanks.
Go to Top of Page

laser
Advanced Member

Australia
3859 Posts

Posted - 24 September 2004 :  17:23:20  Show Profile
That was an easy one , but interesting that it was there to begin with.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.44 seconds. Powered By: Snitz Forums 2000 Version 3.4.07