Raised This Month: $ Target: $400
 0% 

Few questions about SQLite


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
ng1200
Member
Join Date: May 2005
Old 10-28-2007 , 19:33   Few questions about SQLite
Reply With Quote #1

Hi, I'm moving to SQLite.
So I have a few questions:
1) Will the functions be the same?
2) How do I connect to the database? (Function Wiki says dbi_connect is for MySQL)

Edit:
Nevermind, Here are the answers for both questions:
1) Yes.
2)
Code:
new Sql:db, error[257] db = dbi_connect("localhost","","","dbname",error,256)
And dbname must be a file called dbname.sq3 in the folder addons/amxmodx/data/sqlite3 (you need to make the sqlite3 folder)

Last edited by ng1200; 10-28-2007 at 21:11. Reason: Answers
ng1200 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 01:18.


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