Tables In A Xhtml Script

Started on the old forum in June 2008 · view the original in the archive · old links redirect here

12 replies · 743 views · started 18 years ago · 1 min read

3 participants
synergyx Developer · 100 posts #1

is it possible to put a table with for example two columns and two rows in a xhtml site and if so what is the code. i tryied using the code used in html, but that dont work

synergyx Developer · 100 posts #3

aww really?but here is an html file I coded for you that has two columns and two rows.

no i know how to do that, but i need to do it in xhtml, is that possible?

learner Lead · 587 posts #5

maybe u mean this?

echo "<table border="2">"; echo "<tr><td>Row 1 Collumn 1</td><td>Row 1 Collumn 2</td></tr>"; echo "<tr><td>Row 2 Collumn 1</td><td>Row 2 Collumn 2</td></tr>"; echo "</table>";

Failure is not when a girls leaves you, its only when you let her go virgin. heheh!!

BEST MOBILE ADVERTISER

External image (may be gone)

synergyx Developer · 100 posts #6

maybe u mean this? echo "<table border="2">"; echo "<tr><td>Row 1 Collumn 1</td><td>Row 1 Collumn 2</td></tr>"; echo "<tr><td>Row 2 Collumn 1</td><td>Row 2 Collumn 2</td></tr>"; echo "</table>";

yes that it, thanx learner. i am going to try this but tell me what does td and tr stand for?

rukiya Lead · 569 posts #7

no i know how to do that, but i need to do it in xhtml, is that possible?

so why did you say this?

i tryied using the code used in html, but that dont work

<?php
header("Content-type: text/html; charset=ISO-8859-1");
echo "<?xml version=\"1.0\" encoding=\"ISO-8859-1\" ?>";
echo "<!DOCTYPE html PUBLIC \"-//WAPFORUM//DTD XHTML Mobile 1.0//EN\"\"http://www.wapforum.org/DTD/xhtml-mobile10.dtd\">";
echo "<html xmlns=\"http://www.w3.org/1999/xhtml\">";
echo "<head><title>Rukiya</title></head><body>";
echo "<table border=\"2\">";
echo "<tr><td>Row 1 Collumn 1</td><td>Row 1 Collumn 2</td></tr>";
echo "<tr><td>Row 2 Collumn 1</td><td>Row 2 Collumn 2</td></tr>";
echo "</table>";
echo "</body></html>";
?>

this code is php integrating xhtml and td for table cell and tr for table row

synergyx Developer · 100 posts #8

cool thanks that works... and in order for me to add more rows and columns, i must just add more tr and td???

rukiya Lead · 569 posts #9

cool thanks that works... and in order for me to add more rows and columns, i must just add more tr and td???

no i know how to do that, but i need to do it in xhtml, is that possible?

that means you lied and didint really know how to code it and thats the proof

i tryied using the code used in html, but that dont work

its damn easy code,stop copying and pasting and lying, use your brain to code it

synergyx Developer · 100 posts #10

that means you lied and didint really know how to code it and thats the proof

its damn easy code,stop copying and pasting and lying, use your brain to code it

bro you must be high on something, i tried it in xhtml format and i kept on getting parsing errors, i did it in html and it worked fine, but my scripts are not in html format.................

and i thought there might be a different kind of syntax used rather than the tr and td. but it stays the same....

im still new to php so dont tell me im doing wrong, why not use your brain!!! i was just asking a simple question or asking for help...... is this not what this forum is for????????

rukiya Lead · 569 posts #11

bro you must be high on something, i tried it in xhtml format and i kept on getting parsing errors, i did it in html and it worked fine, but my scripts are not in html format.................

and i thought there might be a different kind of syntax used rather than the tr and td. but it stays the same....

im still new to php so dont tell me im doing wrong, why not use your brain!!! i was just asking a simple question or asking for help...... is this not what this forum is for????????

learn here http://www.topxml.com/xhtml/articles/xhtml...les/default.asp

synergyx Developer · 100 posts #12

thank you thats all i was looking for.

another thing: i am going to try this now, can i excecute sql queries in these tables?

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close