Raised This Month: $51 Target: $400
 12% 

SQL Admin Table Name


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
MRLindstrom
Junior Member
Join Date: Jul 2004
Old 07-25-2004 , 01:42   SQL Admin Table Name
Reply With Quote #1

Is there a way to define a different table name for admins other than the default "admin"?
MRLindstrom is offline
Zor
Veteran Member
Join Date: Mar 2004
Location: Toronto, ON
Old 07-25-2004 , 01:46  
Reply With Quote #2

Yes edit the .sma and change the name of the thing...

Code:
dbi_query(sql,"CREATE TABLE IF NOT EXISTS <b>admins</b> ( auth varchar(32) NOT NULL default '', password varchar(32) NOT NULL default '', access varchar(32) NOT NULL default '', flags varchar(32) NOT NULL default '' )")     new Result = dbi_query(sql,"SELECT auth,password,access,flags FROM <b>admins</b>")

Then your good to go. Just compile it again and replace the version you have on your server and voila...

Cheers!
__________________
Zor is offline
Send a message via AIM to Zor Send a message via MSN to Zor Send a message via Yahoo to Zor
MRLindstrom
Junior Member
Join Date: Jul 2004
Old 07-25-2004 , 01:50  
Reply With Quote #3

I ran a search on the directory for the string

Code:
new Result = dbi_query(sql,"SELECT auth,password,access

and I couldn't find it in any file... which .sma file is that?
MRLindstrom is offline
QwertyAccess
Veteran Member
Join Date: Feb 2004
Location: Enjiru Layer
Old 07-25-2004 , 03:04  
Reply With Quote #4

Quote:
Originally Posted by Zor
Yes edit the .sma and change the name of the thing...

Code:
dbi_query(sql,"CREATE TABLE IF NOT EXISTS <b>admins</b> ( auth varchar(32) NOT NULL default '', password varchar(32) NOT NULL default '', access varchar(32) NOT NULL default '', flags varchar(32) NOT NULL default '' )")     new Result = dbi_query(sql,"SELECT auth,password,access,flags FROM <b>admins</b>")

Then your good to go. Just compile it again and replace the version you have on your server and voila...

Cheers!
Zor you nubcakes thats from the admin.sma in 0.20 CVS
__________________
QwertyAccess is offline
BigBaller
Veteran Member
Join Date: Mar 2004
Location: Everett, WA
Old 07-25-2004 , 04:05  
Reply With Quote #5

haha yea

even the dbi module hasnt made its release yet.
__________________

BigBaller is offline
Zor
Veteran Member
Join Date: Mar 2004
Location: Toronto, ON
Old 07-25-2004 , 09:31  
Reply With Quote #6

Shit...ooops...heheheh...well same shit change the name!! Dam I was tired when I posted that one...Looked int the v0.2 stead o the v0.16! Heheheh....well ok here is the right one!

Code:
mysql_query(mysql,"CREATE TABLE IF NOT EXISTS <b><i><u>admins </u></i></b>( auth varchar(32) NOT NULL default '', password varchar(32) NOT NULL default '', access varchar(32) NOT NULL default '', flags varchar(32) NOT NULL default '' ) TYPE=MyISAM") new mysql = mysql_query(mysql,"SELECT auth,password,access,flags FROM <b><i><u>admins</u></i></b>")

There! Hehehe....took a bit to find the old version!

Cheers
__________________
Zor is offline
Send a message via AIM to Zor Send a message via MSN to Zor Send a message via Yahoo to Zor
Reply



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 09:40.


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