943,602 Members | Top Members by Rank

Ad:
  • PHP Discussion Thread
  • Marked Solved
  • Views: 995
  • PHP RSS
Jan 7th, 2009
0

separate query result in different columns

Expand Post »
hi All,

I want to ask if is there any possibility to separate column data in different columns using php code.. really dont know if i have solution in php or here in mysql..

any idea would be really appreciate
Thanx
enim
Similar Threads
Reputation Points: 11
Solved Threads: 2
Light Poster
enim213 is offline Offline
40 posts
since Jun 2008
Jan 8th, 2009
0

Re: separate query result in different columns

Click to Expand / Collapse  Quote originally posted by enim213 ...
hi All,

I want to ask if is there any possibility to separate column data in different columns using php code.. really dont know if i have solution in php or here in mysql..

any idea would be really appreciate
Thanx
enim
Hi,
What are you exactly trying to say? Make it clear. Do you want to display table items in a column or what else?
Reputation Points: 10
Solved Threads: 1
Newbie Poster
ashafaaiz is offline Offline
20 posts
since Dec 2008
Jan 8th, 2009
0

Re: separate query result in different columns

hi guys..

i posted my thread without any further explanation or illustrations..

my problem is i have a query that fetch (like for example) 5 rows and i want a column with different data.

column 1
------------
data1
data2
data3

from query to be like..

(in front-end)
first data | second data | third data
---------------------------------------------
data1 | data2 | data3

like that..

guys really need any idea, opinions, suggestions.. if that problem has any solution.. whether from mysql coding or php.

thanks for the help
enim
Last edited by enim213; Jan 8th, 2009 at 2:48 am.
Reputation Points: 11
Solved Threads: 2
Light Poster
enim213 is offline Offline
40 posts
since Jun 2008
Jan 8th, 2009
0

Re: separate query result in different columns

hey thank you for the repply.. i have explained it from my second post
Reputation Points: 11
Solved Threads: 2
Light Poster
enim213 is offline Offline
40 posts
since Jun 2008
Jan 9th, 2009
0

Re: separate query result in different columns

PHP will allow you to format the display of data in any format that you can think of.

Remember that you are taking data out of an array and placing it into holders, usually columnar but they can be a horizontal series
[d1 d2, d3 d4 d5 d6 d7 d8 d9]
just as easily.
Or a set of columns in a set of rows
[d1 d2 d3
d4 d5 d6
d7 d8 d9]

Using CSS they could be wandering independantly around the screen, or following the mouse. The actual placement is limited only by your imagination.
Reputation Points: 33
Solved Threads: 9
Junior Poster
pclfw is offline Offline
132 posts
since Jun 2005
Jan 9th, 2009
0

Re: separate query result in different columns

yeah! you got it. that's really what i did.,

thank you so much!.

enim
Reputation Points: 11
Solved Threads: 2
Light Poster
enim213 is offline Offline
40 posts
since Jun 2008

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in PHP Forum Timeline: How do I output information from a PHP page to an HTML page?
Next Thread in PHP Forum Timeline: Read file names VS read file





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC