Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
PHP Databases Using PHP in conjunction with databases. PHP questions not specific to databases should be directed to one of the other PHP forums.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the PHP Databases section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 30th, 2011, 11:55 PM
Authorized User
Points: 75, Level: 1
Points: 75, Level: 1 Points: 75, Level: 1 Points: 75, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2009
Posts: 16
Thanks: 1
Thanked 0 Times in 0 Posts
Default arrange table

Hello,

I have a table like this as below,

ECE - Mark
ECE - Kris
ECE - Chris
EEE - Ben
EEE - Chris
CSE - Marc
CSE - Math
CSE - Sara

I want to arrange this table as below using php code

ECE EEE CSE
Mark Ben Marc
Kris Chris Math
Chris Sara

how do I achieve this using php code, please help
__________________
divinequran.com
 
Old March 26th, 2012, 02:35 AM
Registered User
Points: 3, Level: 1
Points: 3, Level: 1 Points: 3, Level: 1 Points: 3, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Mar 2012
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Hi

ECE EEE CSE
Mark Ben Marc
Kris Chris Math
Chris Sara

<?php

echo"<table><tr><td>ECE</td><td>EEE</td><td>CSE</td></tr>
<tr><td>Mark</td><td>Ben</td><td>Marc</td></tr>
<tr><td>Kris</td><td>Chris</td><td>Math</td></tr>
<tr><td>Chris</td><td>Sara</td><td></td></tr></table>";

?>


try it
 
Old April 22nd, 2012, 02:45 AM
Authorized User
Points: 75, Level: 1
Points: 75, Level: 1 Points: 75, Level: 1 Points: 75, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2009
Posts: 16
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Thanks, I have got the result.
__________________
divinequran.com
 
Old July 6th, 2012, 02:16 AM
Registered User
Points: 9, Level: 1
Points: 9, Level: 1 Points: 9, Level: 1 Points: 9, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jul 2012
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Unhappy

Hello Everyone,,

I am ghanistha123

Pls Help me How to arrange this table??

Thanxs and help me..




Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem understanding how to arrange the project alexanderH BOOK: ASP.NET Website Programming Problem-Design-Solution 6 January 29th, 2007 12:50 AM
Arrange dynamic cells... Roshu Javascript How-To 1 January 11th, 2005 06:55 AM
can u arrange .net cds gvcc_neel .NET Framework 2.0 2 December 21st, 2004 09:17 AM
can u arrange .net cds it is emergency gvcc_neel .NET Framework 2.0 1 December 18th, 2004 01:20 PM
how to arrange elements group wise. srini XSLT 0 February 4th, 2004 05:17 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.