table

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
ddragas
Forum Contributor
Posts: 445
Joined: Sun Apr 18, 2004 4:01 pm

table

Post by ddragas »

Hi

Hope somebody can help me.

What I won't is to make table in withc some data will be populated.

table should look like this:


|---------------------------------|------------|
|/data1/|/picture1/|/data2/|////////////|
|---------------------------------|////////////|
|/data3/|////data4///////////|/picture2/|
|---------------------------------|////////////|
|/data5/|////data6///////////|////////////|
|---------------------------------|------------|

normaly without "/" letter.

this is my first php creation of table, so please help me
Illusionist
Forum Regular
Posts: 903
Joined: Mon Jan 12, 2004 9:32 pm

Post by Illusionist »

Code: Select all

<table>
<tr><td>data1</td><td><img src=whatever.jpg></td><td>data2</td><td rowspan=3><img src=whatever2.jpg></td></tr>
<tr><td>data3</td><td>data4</td></tr>
<tr><td>data5</td><td>data6</td></tr>
</table>
User avatar
ddragas
Forum Contributor
Posts: 445
Joined: Sun Apr 18, 2004 4:01 pm

Post by ddragas »

Illusionist wrote:

Code: Select all

<table>
<tr><td>data1</td><td><img src=whatever.jpg></td><td>data2</td><td rowspan=3><img src=whatever2.jpg></td></tr>
<tr><td>data3</td><td>data4</td></tr>
<tr><td>data5</td><td>data6</td></tr>
</table>

Thanky you for quick reply.

What I need is how to make table with PHP script and table should look like above

not in HTML.

Thank you
Illusionist
Forum Regular
Posts: 903
Joined: Mon Jan 12, 2004 9:32 pm

Post by Illusionist »

Code: Select all

echo "<table>";
echo "<tr><td>data1</td><td><img src=whatever.jpg></td><td>data2</td><td rowspan=3><img src=whatever2.jpg></td></tr>";
echo "<tr><td>data3</td><td>data4</td></tr>";
echo "<tr><td>data5</td><td>data6</td></tr>";
echo "</table>";
There ya go LMAO!
User avatar
ddragas
Forum Contributor
Posts: 445
Joined: Sun Apr 18, 2004 4:01 pm

Post by ddragas »

Thank you.

One more thing


How to put in code you've give me:

table width="100%"
border="1"
align="center"
cellpadding="0"
cellspacing="0"
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

use \" experiment with it..
User avatar
ddragas
Forum Contributor
Posts: 445
Joined: Sun Apr 18, 2004 4:01 pm

Post by ddragas »

Don't understand
User avatar
tim
DevNet Resident
Posts: 1165
Joined: Thu Feb 12, 2004 7:19 pm
Location: ohio

Post by tim »

echo "<font color=\"blue\">";

echo "<input type=\"submit"\ value=\"Hit me\">

some examples.
Illusionist
Forum Regular
Posts: 903
Joined: Mon Jan 12, 2004 9:32 pm

Post by Illusionist »

or you could jsut change the " to '
Post Reply