Tables In A Xhtml Script

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Tables In A Xhtml Script

    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

    #2
    aww really?but here is an html file I coded for you that has two columns and two rows.
    [attachment=1640:learn.html]
    Attached Files

    Comment


      #3
      aww really?but here is an html file I coded for you that has two columns and two rows.
      [attachment=1640:learn.html][/b]
      no i know how to do that, but i need to do it in xhtml, is that possible?

      Comment


        #4
        here u go in xhtml
        Attached Files
        Failure is not when a girls leaves you, its only when you let her go virgin. heheh!!

        <span style="color:#9ACD32"><span style="font-size:36pt;line-height:100%">BEST MOBILE ADVERTISER</span></span>

        Comment


          #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!!

          <span style="color:#9ACD32"><span style="font-size:36pt;line-height:100%">BEST MOBILE ADVERTISER</span></span>

          Comment


            #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>";[/b]
            yes that it, thanx learner. i am going to try this but tell me what does td and tr stand for?

            Comment


              #7
              no i know how to do that, but i need to do it in xhtml, is that possible?[/b]
              so why did you say this?
              i tryied using the code used in html, but that dont work[/b]
              Code:
              <?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

              Comment


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

                Comment


                  #9
                  cool thanks that works... and in order for me to add more rows and columns, i must just add more tr and td???[/b]
                  no i know how to do that, but i need to do it in xhtml, is that possible?[/b]
                  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[/b]
                  its damn easy code,stop copying and pasting and lying, use your brain to code it

                  Comment


                    #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[/b]
                    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????????

                    Comment


                      #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????????[/b]
                      learn here
                      http://www.topxml.com/xhtml/articles/xhtml...les/default.asp

                      Comment


                        #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?

                        Comment


                          #13
                          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?[/b]
                          yes you can

                          Comment

                          Working...
                          X