| | |
separate query result in different columns
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
Thread Solved |
•
•
Join Date: Dec 2008
Posts: 19
Reputation:
Solved Threads: 1
•
•
•
•
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
What are you exactly trying to say? Make it clear. Do you want to display table items in a column or what else?
•
•
Join Date: Jun 2008
Posts: 40
Reputation:
Solved Threads: 2
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
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.
•
•
Join Date: Jun 2005
Posts: 60
Reputation:
Solved Threads: 5
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.
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.
![]() |
Similar Threads
- How to configure GD (PHP)
- dynamic array variable.. (PHP)
- php.ini confusion (PHP)
- Pivot table in DataGrid (VB.NET)
- php table help (PHP)
Other Threads in the PHP Forum
- Previous Thread: How do I output information from a PHP page to an HTML page?
- Next Thread: Read file names VS read file
| Thread Tools | Search this Thread |
apache api array beginner binary body broken buttons cakephp checkbox class cms code cron curl database date date/time display dynamic ebooks echo email error file files folder form forms function functions global google href htaccess html image include insert ip javascript joomla limit link list login mail mediawiki menu mlm msqli_multi_query multiple mycodeisbad mysql number oop parameter paypal pdf php phpincludeissue phpmyadmin problem query radio random recursion regex remote script search seo server sessions sms source sp space speed sql static subdomain syntax system table tag tutorial update upload url validator variable vbulletin video web webdesign white wordpress xml youtube





