Raised This Month: $ Target: $400
 0% 

How to combine some rows data into one string?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
FEELiFE
Member
Join Date: Jul 2010
Old 04-22-2011 , 07:35   How to combine some rows data into one string?
Reply With Quote #1

Hi guys! I have a table in mysql database. I get user's info with:

Code:
SELECT * FROM `table` WHERE steamid='%s'
And the query returns some rows. I want to combine the values from column in all rows.

Example: (these are the values from the column in all returned rows)
1. a
2. b
3. c
4. d
5. e
6. f

And I want to combine them all in one string:
Code:
new combine[32] = "abvdef"
How canI do this?
FEELiFE 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 20:10.


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