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
 Private Messages & SQL Syntax
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

Beano_ie
Junior Member

Ireland
328 Posts

Posted - 19 October 2004 :  17:25:22  Show Profile  Visit Beano_ie's Homepage  Send Beano_ie an ICQ Message
I have the follwoing error when I member attempts to read their PMs.

[MySQL][ODBC 3.51 Driver][mysqld-4.0.20a-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 '[IGNORE_PM]='Admin' AND MEMBER_ID=3' at line 1

/forums/pm_view.asp, line 245


pm_view.asp line 244 - 246 reads:

244 Set rsFrom = my_Conn.Execute(strSql)
245 set rsIgnore = my_conn.execute("SELECT * FROM " & strTablePrefix & "PM_IGNORE WHERE [IGNORE_PM]='" & rsFrom("M_NAME") & "' AND MEMBER_ID=" & MemberID)
246 if not rsIgnore.EOF then

Here's a Screenshot of my current tables in table PM_IGNORE;




I'm guessing it has something to do with M_NAME but I'm no expert. Any help/guidance would be appreciated.

Steve
Drogheda, Ireland @ www.droghedatown.com

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 19 October 2004 :  17:45:58  Show Profile
Remove the brackets from around IGNORE_PM.

Support Snitz Forums
Go to Top of Page

Beano_ie
Junior Member

Ireland
328 Posts

Posted - 19 October 2004 :  18:10:56  Show Profile  Visit Beano_ie's Homepage  Send Beano_ie an ICQ Message
Thank you Davio, thats perfect.

Steve
Drogheda, Ireland @ www.droghedatown.com
Go to Top of Page

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 19 October 2004 :  22:04:22  Show Profile
You're Welcome!
Whenever you have any more easy questions, let me know.

Support Snitz Forums
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.36 seconds. Powered By: Snitz Forums 2000 Version 3.4.07