| | |
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 |
advanced apache api array beginner binary broken cakephp checkbox class cms code cookies cron curl database date datepart display dropdownlist dynamic echo email eregi error execution file files folder form forms function functions google head href htaccess html if...loop image include includingmysecondfileinthechain insert ip javascript job joomla jquery key library limit link login mail menu mlm multiple mysql oop password paypal pdf pdfdownload php phpvotingscript problem query radio random recursion remote screen script search server sessions smarty sms soap sorting source space sql startup stored syntax system table traffic tutorial update upload url validator variable video web xml youtube zend





