Web Wiz - Solar Powered Eco Web Hosting

  New Posts New Posts RSS Feed - Error adding Admin
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Error adding Admin

 Post Reply Post Reply
Author
j172 View Drop Down
Newbie
Newbie
Avatar

Joined: 24 August 2006
Status: Offline
Points: 38
Post Options Post Options   Thanks (0) Thanks(0)   Quote j172 Quote  Post ReplyReply Direct Link To This Post Topic: Error adding Admin
    Posted: 29 March 2007 at 9:03am
Hi
 
When trying to add a new admin user i get the following error message:
 
Server Error in Forum Application
An error has occurred while updating database.
Please contact the Newsletter Administrator.

Support Error Code:- err_Access_add_new_admin
File Name:- admin_add_admin_user.asp

Error details:-
Microsoft JET Database Engine
Syntax error in INSERT INTO statement.
 
I'm using the Access database
 
Regards
Joel
Back to Top
MrMellie View Drop Down
Senior Member
Senior Member
Avatar

Joined: 12 December 2006
Location: United Kingdom
Status: Offline
Points: 251
Post Options Post Options   Thanks (0) Thanks(0)   Quote MrMellie Quote  Post ReplyReply Direct Link To This Post Posted: 29 March 2007 at 9:48am
I've tried that but with MS SQL as the backend and it worked ok.
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9791
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 29 March 2007 at 10:41am
Looks like the problem is Access doesn't like the word 'Password' in an Insert SQL query to the database without square brackets around it, SQL server doesn't mind, and mySQL will crash if you do have square brackets.

The solution for the Access version is to edit the SQL query around line 86 and change the word Password to:-

[Password]
Back to Top
MrMellie View Drop Down
Senior Member
Senior Member
Avatar

Joined: 12 December 2006
Location: United Kingdom
Status: Offline
Points: 251
Post Options Post Options   Thanks (0) Thanks(0)   Quote MrMellie Quote  Post ReplyReply Direct Link To This Post Posted: 29 March 2007 at 10:53am
Oddly, "password" isn't listed as one of Access's reserved words.
 
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9791
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 29 March 2007 at 11:00am
It does seem very odd and didn't come up in testing as originally the Insert statement had brackets around all form fields which both Access and SQL Server like, but these were removed when adding mySQL support as mySQL doesn't like the use of square brackets.
Back to Top
MrMellie View Drop Down
Senior Member
Senior Member
Avatar

Joined: 12 December 2006
Location: United Kingdom
Status: Offline
Points: 251
Post Options Post Options   Thanks (0) Thanks(0)   Quote MrMellie Quote  Post ReplyReply Direct Link To This Post Posted: 29 March 2007 at 11:43am
Thanks for the heads up on square brackets and MySQL. I've been naughty and used a reserved word in one of the Photo Album add-on tables. I haven't tested it on MySQL yet, but it looks like it's time to go and do some field name changing!
Back to Top
j172 View Drop Down
Newbie
Newbie
Avatar

Joined: 24 August 2006
Status: Offline
Points: 38
Post Options Post Options   Thanks (0) Thanks(0)   Quote j172 Quote  Post ReplyReply Direct Link To This Post Posted: 29 March 2007 at 5:05pm
Works a treat
 
Thanks
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.07
Copyright ©2001-2024 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 Policy

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 unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2024 Web Wiz Ltd. All rights reserved.