Raised This Month: $ Target: $400
 0% 

How to save arrays to mysql


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
claudiuhks
Yam Inside®™℠
Join Date: Jan 2010
Location: Living Randomly
Old 05-05-2012 , 04:56   Re: How to save arrays to mysql
Reply With Quote #2

PHP Code:
// NUMERIC
INSERT INTO MyTable MyFirstRowMySecondRow VALUES 1)
// INSERT INTO Ach ( Kills, Deaths ) VALUES ( %d, %d )

// TEXT
INSERT INTO MyTable MyFirstRowMySecondRow VALUES 'abc''lmn' )
// INSERT INTO Ach ( Name, Steam ) VALUES ( '%s', '%s' )

// FUNCTIONS
INSERT INTO MyTable MyFirstRow VALUES unix_timestampnow( ) ) ) // TIME ELAPSED IN SECONDS SINCE UNIX EPOCH ( JAN 01 1970 ) 
Please make sure your szQuery string has enough characters to handle your whole query. I recommend 256 or 512 cells instead.
__________________

Last edited by claudiuhks; 05-05-2012 at 05:01.
claudiuhks is offline
Send a message via MSN to claudiuhks Send a message via Yahoo to claudiuhks Send a message via Skype™ to claudiuhks
 



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