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

 All Forums
 Snitz Forums 2000 MOD-Group
 MOD Add-On Forum (W/Code)
 Mini-Mod : Who Has Posted
 New Topic  Topic Locked
 Printer Friendly
Previous Page
Author Previous Topic Topic Next Topic
Page: of 3

Arne2
New Member

Denmark
51 Posts

Posted - 22 March 2003 :  05:19:17  Show Profile
I only get the built in error messages I referred to in my post above: "There Was A Problem With Your Details" and the other one.
Go to Top of Page

Arne2
New Member

Denmark
51 Posts

Posted - 22 March 2003 :  05:24:06  Show Profile
Where is it that you use total_posts after you have run the sql? I can not spot where that variable is used afterwards. In my PHP script you can clearly see it being used.

Edited by - Arne2 on 22 March 2003 05:26:22
Go to Top of Page

Hamlin
Advanced Member

United Kingdom
2386 Posts

Posted - 22 March 2003 :  05:28:46  Show Profile
Ummm well I have no idea, the message There are no replies to this topic! should only be shown if the query does not bring any records back.

It uses GetRows so maybe there is a problem there with mySQL, but it works with the rest of the forum so I doubt it.

Try adding a -1 as shown below (in pop_posted.asp), thats something the forum code does that I did not.


if Not rsPosted.EOF then arrPosted = rsPosted.GetRows(-1)


I have no idea if that will help but its worth a try anyway.
Go to Top of Page

Arne2
New Member

Denmark
51 Posts

Posted - 22 March 2003 :  05:34:37  Show Profile
No there was no change using the -1, sorry.
Go to Top of Page

Hamlin
Advanced Member

United Kingdom
2386 Posts

Posted - 22 March 2003 :  05:42:49  Show Profile
quote:
Originally posted by Arne2

Where is it that you use total_posts after you have run the sql? I can not spot where that variable is used afterwards. In my PHP script you can clearly see it being used.



Its not used anywhere really, I only had it in when I was looking at the SQL in Query Analyzer, otherwise you don't have a column name.

Edited by - Hamlin on 22 March 2003 05:43:28
Go to Top of Page

Arne2
New Member

Denmark
51 Posts

Posted - 22 March 2003 :  05:47:54  Show Profile
Well, I spent 3 whole days on it before I gave up LOL, and did not get anywhere. I changed the sql to not have the total_post in it and put in member_id in it's place, without a count, and it worked fine, but now of course just showing the author name and his member number in the second row.
Go to Top of Page

Hamlin
Advanced Member

United Kingdom
2386 Posts

Posted - 22 March 2003 :  05:49:51  Show Profile
quote:
Originally posted by Arne2

Well, I spent 3 whole days on it before I gave up LOL, and did not get anywhere. I changed the sql to not have the total_post in it and put in member_id in it's place, without a count, and it worked fine, but now of course just showing the author name and his member number in the second row.



So it was is a problem with the query

Edited by - Hamlin on 22 March 2003 05:50:47
Go to Top of Page

Arne2
New Member

Denmark
51 Posts

Posted - 22 March 2003 :  05:54:03  Show Profile
Of course I had to change the error check (I stopped it) when I did that - I forgot to mention this
Go to Top of Page

Arne2
New Member

Denmark
51 Posts

Posted - 22 March 2003 :  12:10:40  Show Profile
Suggestion:
While I was at it with my PHP version, I also added the date ( MAX(R.R_DATE) AS MAX_DATE) so that I get it sorted by max_date desc

You can see it in one of the open forums here:
Link

I don't want the other links there, so I left them out.

Regards
Arne
Go to Top of Page

Hamlin
Advanced Member

United Kingdom
2386 Posts

Posted - 22 March 2003 :  12:49:27  Show Profile
Thats not a bad idea, glad to see the your PHP version works at least
Go to Top of Page
Page: of 3 Previous Topic Topic Next Topic  
Previous Page
 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.18 seconds. Powered By: Snitz Forums 2000 Version 3.4.07