473,405 Members | 2,294 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

Dynamic 2x2 growing table

Hi all I am working on a new project where it has to have a dynanically growing table I guess I am going to have to use loops or two array function . Every time a project is added it must appear in it table which must be growing horizontally. then jumping onto the next line when first line in full.

Thanks in advance for all replies.
Feb 1 '07 #1
4 2065
Motoma
3,237 Expert 2GB
Hi all I am working on a new project where it has to have a dynanically growing table I guess I am going to have to use loops or two array function . Every time a project is added it must appear in it table which must be growing horizontally. then jumping onto the next line when first line in full.

Thanks in advance for all replies.
Okay mankolele, what is your question?
Feb 1 '07 #2
Okay mankolele, what is your question?

How do I make a table increase each time a new project is displayed on the interface like on the interface each time there is a project posted in by an administrator it appears in a small table the details so on a row I can fit four columns. when the first row is full continue to the next.

Where do I start the loop code for that kind of out put.

Thanks
Feb 1 '07 #3
Motoma
3,237 Expert 2GB
How do I make a table increase each time a new project is displayed on the interface like on the interface each time there is a project posted in by an administrator it appears in a small table the details so on a row I can fit four columns. when the first row is full continue to the next.

Where do I start the loop code for that kind of out put.

Thanks
Each case will vary.
The way I would do it would be to create the <TABLE> tags, then have a for-loop populate it with <TR>s and <TD>s.

[PHP]
<?php
echo "<TABLE>";
foreach($itemArray as $item)
{
echo '<TR><TD>'.$item['firstname'].'</TD><TD>'.$item['lastname'].'</TD></TR>';
}
echo "</TABLE>";
?>
[/PHP]
Feb 1 '07 #4
Thanks for the reply am still working on it will come back as soon as I get stuck somewhere.
Feb 2 '07 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Subodh | last post by:
I've written a SP which does some complex calculations and in the end dumps data into 2 tables (master & detail) When I run this sp for smaller no of IDS (employees i.e for 13000 in Master and...
8
by: Ryan R. Rosario | last post by:
Hi - **I apologize for posting this again. I dont think my first one went thru** I am in the process of converting a table based website over to a CSS based website and I am having a problem....
6
by: Vasileios Zografos | last post by:
Hello, I have a function that generates some values (e.g. vertices in 2d space) the number of which I dont know. So, it could generate 20 vertices, 100 vertices, or even 1 vertex. void...
2
by: Michael Raz via DBMonster.com | last post by:
We are in SAP R/3 using z/OS DB2 V7.1 as our DB Server. SAP uses a table called VBDATA for it's internal intermediate needs just inserting in it's primary transaction a row and then selects and...
7
by: serge | last post by:
How can I run a single SP by asking multiple sales question either by using the logical operator AND for all the questions; or using the logical operator OR for all the questions. So it's always...
4
by: yashgt | last post by:
Hi, We have created a SQL server 2000 database. We observe that the transaction log keeps growing over time. We are now about to run out of space. We have been periodically shrinking the...
13
by: coosa | last post by:
Dear all, Using the conio implementation i wanted to create a dynamic string, whereby its size would be determined after each keyboard hit; in other words, i don't want to ask the user to...
6
by: Burkhard Schultheis | last post by:
I've installed a fresh DB2 V9.1 server (Express-C). Now I see, that the number of applications (db2 list applications) is growing all the times when a script is run which makes some database...
9
by: vanlanjl | last post by:
Okay this is very complicated (for me), but i need some help on this please. I am creating a Network Diagram in Visio, along with this I have collected all the Information for every Network Device...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.