Page 1 of 1

table

Posted: Sat Jun 12, 2004 9:03 am
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

Posted: Sat Jun 12, 2004 9:15 am
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>

Posted: Sat Jun 12, 2004 9:21 am
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

Posted: Sat Jun 12, 2004 9:23 am
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!

Posted: Sat Jun 12, 2004 10:15 am
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"

Posted: Sat Jun 12, 2004 11:10 am
by feyd
use \" experiment with it..

Posted: Sat Jun 12, 2004 12:25 pm
by ddragas
Don't understand

Posted: Sat Jun 12, 2004 12:46 pm
by tim
echo "<font color=\"blue\">";

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

some examples.

Posted: Sat Jun 12, 2004 2:25 pm
by Illusionist
or you could jsut change the " to '