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
FEELiFE
Member
Join Date: Jul 2010
Old 04-22-2011 , 10:50   Re: How to combine some rows data into one string?
Reply With Quote #3

Quote:
Originally Posted by grimvh2 View Post
PHP Code:
format(combinecharsmax(combine), "%s %s %s %s %s %s"word1word2word3word4word5word6
Yeah man.. I know how to combine them, but there are different number of rows for different players, so I don't know how to get them ALL and combine them. The rows can be 5 or 10 or 15 or more or less..

So one more time - I get all rows I need with:
SELECT * FROM `table` WHERE steamid='%s'
then from each row, I want to get the value from the column test, and finally to combine all values in one string.
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