Raised This Month: $ Target: $400
 0% 

Solved Admin base sql edited.


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Kushfield
Member
Join Date: Jan 2017
Location: Estonia
Old 11-18-2018 , 05:56   Re: Admin base sql edited.
Reply With Quote #4

I can see 2 problems with the code after a quick look:

Line 244 - You have the access flags and nickname parameter switched up:
PHP Code:
AddAdmin(idauthnicknameflagspasswordtypeComment
Line 257:
PHP Code:
AddAdmin(idauth[], accessflags[], nickname[], password[], flags[], comment[]=""
Line 338 - Here you specify 5 columns to add, but only 4 values for them. This would result in an error and nothing gets added:
PHP Code:
SQL_QueryAndIgnore(sql"REPLACE INTO `%s` (`auth`, `nickname`, `password`, `access`, `flags`) VALUES ('%s', '%s', '%s', '%s')"tableauthnicknamepasswordaccessflagsflags
Kushfield is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 07:39.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode