Raised This Month: $ Target: $400
 0% 

How to save arrays to mysql


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
DoviuX
Senior Member
Join Date: Jun 2009
Location: Lithuania
Old 05-05-2012 , 04:05   How to save arrays to mysql
Reply With Quote #1

How to save these arrays or variables into mysql ?

Is it something like this ?


PHP Code:
p_achieviments33 ][ MAXACHIEVIMENTS ], p_kills33 ][ MAXACHIEVIMENTS ], 
achvi_name33 ][ MAXACHIEVIMENTS ];

    new 
szAuth33 ];
    new 
szKey64 ];

    
get_user_ipidszAuth charsmaxszAuth ), 1);
    
formatexszKey 63 "%s-IP" szAuth );
    static 
szQuery128 ]; 
    
formatexszQuery127"INSERT INTO `achieviment_table` ( `player_id`, `achieviment_name`, `achieviment_id` ) VALUES ( '%s', '%s', '%d' );"szAuth achvi_nameid ][ ], p_achievimentsid ][ ] ); 
DoviuX is offline
Send a message via Skype™ to DoviuX
 


Thread Tools
Display Modes

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 00:32.


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