Raised This Month: $ Target: $400
 0% 

Reading ini file through sql table


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
bibu
Veteran Member
Join Date: Sep 2010
Old 06-16-2011 , 12:40   Re: Reading ini file through sql table
Reply With Quote #1

Quote:
Originally Posted by Exolent[jNr] View Post
Remember that ini_to_sql() doesn't load them into the plugin, only transfers from the .ini file to the database.

Something quick you could do one time would be:
Code:
load_sql(); // creates table, loads no messages ini_to_sql(); // puts messages from .ini into table load_sql(); // loads messages from table
I know, I've got the "ini" file already in my configs dir. And which one does only create table and doesn't load messages?
__________________
Selling tons of my own private works.
Accepting paid work for clans and communities.
Don't hesitate to contact me.
bibu is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 06-16-2011 , 13:09   Re: Reading ini file through sql table
Reply With Quote #2

I mean you would do them in that order.

The first time is creating the table, but not loading any messages because the table is empty.
The second function puts all the messages in to the table.
The third line loads the messages from the table.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
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 23:26.


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