Raised This Month: $ Target: $400
 0% 

sqlite in sqlx...


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
CodeStepper
Member
Join Date: Jun 2013
Location: Polska
Old 07-11-2013 , 19:02   sqlite in sqlx...
Reply With Quote #1

Ok...
Hi

So... i try to create a sqlite database in my local server. So... this is my code:


PHP Code:
out_void public xt_database_initin_char dbname[] )
{
    
var_char dbnoext[20] = EMPTY;
    
    
substrdbnamedbnoext0strposdbname'.' ) );

    
SQL_SetAffinity"sqlite" );
    
gg_databasehandle SQL_MakeDbTuple""""""dbnoext );
    
    
SQL_ThreadQuerygg_databasehandle"xt_database_check_query",
    
"CREATE TABLE IF NOT EXISTS server_options\
    (\
        id INT NOT NULL PRIMARY KEY,\
        value INT NOT NULL\
    )" 
);

And... it flush me error:
Code:
L 07/12/2013 - 00:53:40: [myplugin.amxx] 2003 : Can't connect to MySQL server on 'localhost' (10061)
What's wrong? Why is it trying to connect to mysql server not sqlite?

PS: I forgot to add this...
PHP Code:
#define var_char new
#define out_void
#define in_char

And... substr and strpos definition... 

Last edited by CodeStepper; 07-12-2013 at 02:43.
CodeStepper 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 06:22.


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