Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - MOD:Topic Count (MSSQL version)
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

MOD:Topic Count (MSSQL version)

 Post Reply Post Reply Page  <12
Author
Ali Bilgrami View Drop Down
Senior Member
Senior Member
Avatar

Joined: 14 April 2005
Location: Pakistan
Status: Offline
Points: 492
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ali Bilgrami Quote  Post ReplyReply Direct Link To This Post Posted: 01 January 2007 at 6:30pm

YURIKAAAAAAAAAAAAAA!!!!!!!!!!!!!!!!!!!

stupid SQL query language spaces I missed the darn space in red between the table field name and double quotes
------------
'Initalise the strSQL variable with an SQL statement to query the database to get the number of posts the user has made
 strSQL = "SELECT " & strDbTable & "Author.No_of_posts, " & strDbTable & "Group.Special_rank, " & strDbTable & "Author.No_of_topic " & _
 "FROM " & strDbTable & "Author " & strDBNoLock & ", " & strDbTable & "Group " & strDBNoLock & " " & _
 "WHERE " & strDbTable & "Author.Group_ID=" & strDbTable & "Group.Group_ID " & _
  "AND " & strDbTable & "Author.Author_ID=" & lngLoggedInUserID & ";"
--------------------
works like a charm ....will upload the changes in files and complete the mod :P
Lets!
Back to Top
 Post Reply Post Reply Page  <12

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.