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: MOD Implementation
 Links Manager 3 Beta 2 - SQL syntax error
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

cybliminal
Starting Member

7 Posts

Posted - 18 June 2008 :  14:25:11  Show Profile
Greetings fellow code diver (hopefully more experienced than me)
I have installed Links Manager 3 Beta 2, on my 3.4.06 forum, and while accessing "links.asp" and "links.asp?action=submit" works OK, trying to see the New links (links.asp?action=new), Popular links (links.asp?action=popular), Top Rated (links.asp?action=toprated) and even getting to the admin page (admin_Links.asp) gives me the following (slightly varying - line 445 is constand) SQL syntax error for all links.asp calls:

--------------------
Microsoft OLE DB Provider for ODBC Drivers error '80040e14'

[MySQL][ODBC 3.51 Driver][mysqld-5.0.37-community-nt]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 'SHOW=1 ORDER BY POST_DATE DESC, NAME DESC LIMIT 15' at line 1

/forum/inc_func_links.asp, line 445

-------------------

admin_Links.asp returns the following:

-------------------
Microsoft OLE DB Provider for ODBC Drivers error '80040e14'

[MySQL][ODBC 3.51 Driver][mysqld-5.0.37-community-nt]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 'SHOW=0' at line 1

/forum/admin_Links.asp, line 584

-------------------

The MySQL version the site runs on is 4.1.22

Any help and/or hints would be greatly apreciated!
<

AnonJr
Moderator

United States
5768 Posts

Posted - 18 June 2008 :  14:39:06  Show Profile  Visit AnonJr's Homepage
If memory serves, I think "SHOW" is a reserved word in MySQL. I do remember that the recipe MOD - which is based on the Links Manager - had some issues with MySQL and reserved words. It would probably be worth while to find the thread that dealt with that issue as it will at least give a clue as to where to go next.<
Go to Top of Page

cybliminal
Starting Member

7 Posts

Posted - 19 June 2008 :  05:18:13  Show Profile
Thanx again

You are right, SHOW is a reserved word in MySQL, and this should be the prob.

So I'm changing it now in the db to something unique (and not reserved), and I'll try to locate it in the MOD files and change it there too.

Hope this will set things right.<
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 19 June 2008 :  05:39:55  Show Profile  Send ruirib a Yahoo! Message
You can just escape the word in the SQL statement, by using it like this: `SHOW`.<


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

cybliminal
Starting Member

7 Posts

Posted - 20 June 2008 :  13:43:02  Show Profile
ruirib thanks for the tip, I would appreciate it if you could explain a bit further.
The way I've managed to implement the mod with MySQL, for now is as follows:
  1. I changed "SHOW" in the db setup (dbs_links.asp) to "LM_SHOW" (any unique none Mysql reserved name will work)
  2. Then I ran the dbs_links.asp so that db setup would create all tables successfuly (otherwise it fails creating the forum_links table)
  3. Afterwards I found all "SHOW" references (and a couple of "show") in the 4 asp pages of the mod and changed them to LM_SHOW aswell

That's it hope this helps someone struggling with the mod till a final version is released.
Oh, I also if you can not get the links description to be displayed, you can do the following to sort this out:

in inc_func_links.asp (approx. lines 187-189)look for:

  Set trs = my_conn.execute(strsql)
  TmpStr = ""                    
  TmpStr = TmpStr & "<br/><li>"

and replace it with

  Set trs = my_conn.execute(strsql)
  strLinkDesc = trs("DESCRIPTION")
  TmpStr = ""                    
  TmpStr = TmpStr & "<br/><li>"

AND Then find the following code (approx. lines 239-243):

  If strLMShowDesc = 1 Then
    If trim(trs("DESCRIPTION")) <> "" Then
      TmpStr = TmpStr & "            <br />" & formatStr(trs("DESCRIPTION")) & vbNewLine  
    End If      
  End if


replace with


  If strLMShowDesc = 1 Then
    If trim(strLinkDesc) <> "" Then
      TmpStr = TmpStr & "            <br />" & formatStr(strLinkDesc) & vbNewLine  
    End If      
  End if


Only remaining problem is when running a Links search I get the following:
-------------------------------
ADODB.Recordset error '800a0cb3'

Current Recordset does not support bookmarks. This may be a limitation of the provider or of the selected cursortype.

/forum/links.asp, line 326

-------------------------------<

Edited by - cybliminal on 20 June 2008 13:44:44
Go to Top of Page

modifichicci
Average Member

Italy
787 Posts

Posted - 20 June 2008 :  13:52:23  Show Profile  Visit modifichicci's Homepage
add

objPagingRS.CursorLocation = adUseClient

after
objPagingRS.CacheSize = strPageSize<

Ernia e Laparocele
Forum di Ernia e Laparocele
Acces - MySql Migration Tutorial
Adamantine forum
Go to Top of Page

cybliminal
Starting Member

7 Posts

Posted - 21 June 2008 :  07:38:59  Show Profile
modifichicci thank you very, very much!

MOD works perfectly now.<
Go to Top of Page

janudara
Starting Member

India
4 Posts

Posted - 24 August 2008 :  12:10:48  Show Profile  Visit janudara's Homepage  Send janudara a Yahoo! Message
Hello friend!!!, Can anyone post this mod working with mssql database.Original mod only works with access database & i am not so experianced to do the req. changes myself.

Plase help & thanks in advance.I am sure someone will post it for me.<
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 24 August 2008 :  12:22:52  Show Profile  Send ruirib a Yahoo! Message
You should be aware that this mod has serious security issues. It needs a thorough review. I certainly cannot recommend its installation!<


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

janudara
Starting Member

India
4 Posts

Posted - 24 August 2008 :  12:40:19  Show Profile  Visit janudara's Homepage  Send janudara a Yahoo! Message
Thanks a lot for the quick reply.Can you suggest any directory mod working with snz forum?

Thanka again.<
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 24 August 2008 :  12:59:02  Show Profile  Send ruirib a Yahoo! Message
I am afraid I can't. Not the most knowledgeable person on mods. Not sure whether there is something else at snitzbitz.com.<


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

Carefree
Advanced Member

Philippines
4222 Posts

Posted - 24 August 2008 :  13:21:02  Show Profile
quote:
Originally posted by janudara

Thanks a lot for the quick reply.Can you suggest any directory mod working with snz forum?

Thanka again.



What did you need the directory mod to do?<
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.5 seconds. Powered By: Snitz Forums 2000 Version 3.4.07