HTML Tutorial


 Forum HomeForum Home   FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
RegisterRegister - Not registered yet? Got something to say? Join HTML Code Tutorial!
hi.. can anyone help?
Goto page 1, 2  Next
Post new topic   Reply to topic    HTML Help Forum Index -> HTML Table
View previous topic :: View next topic  
Author Message
ryulite



Joined: 05 Jan 2005
Posts: 12

PostPosted: Wed Jan 05, 2005 11:04 pm     hi.. can anyone help? Reply with quote

i dont understand why did my validator have this errors..

Code:
<table border="0" width="100%" cellspacing="2" cellpadding="2">
   <tr>
<!-- body_text //-->
      <td width="100%" valign="top">


* php coding*

<table border="0" width="100%" cellspacing="0" cellpadding="0">
   <tr>
      <td class="pageHeading"><?php echo HEADING_TITLE; ?></td>
   </tr>
</table>

* php coding*

<table border="0" width="100%" cellspacing="0" cellpadding="0">
   <tr>
      <td valign="top">

<table border="0" width="100%" cellspacing="0" cellpadding="2">
   <tr class="dataTableHeadingRow">
      <td width="10%" class="dataTableHeadingContent"><?php echo TABLE_HEADING_ADMINS_ID; ?></td>
      <td width="35%" class="dataTableHeadingContent"><?php echo TABLE_HEADING_ADMINS_NAME; ?></td>
      <td width="35%" class="dataTableHeadingContent"><?php echo TABLE_HEADING_ADMINS_EMAIL; ?></td>
      <td width="20%" class="dataTableHeadingContent" align="right"><?php echo TABLE_HEADING_ACTION; ?>&nbsp;</td>
</tr>
   *php coding*

      ***<td class="dataTableContent"><?php echo $admins->fields['admin_id']; ?></td>
      <td class="dataTableContent"><?php echo $admins->fields['admin_name']; ?></td>
      <td class="dataTableContent"><?php echo $admins->fields['admin_email']; ?></td>
      <td class="dataTableContent" align="right">

*php coding*

      </td***]
</tr>

* php coding............*

   <tr>
      <td colspan="2">

<table border="0" width="100%" cellspacing="0" cellpadding="4">
   <tr>
      <td class="smallText" valign="top">

* php coding*

</td>
   </tr>
</table>

      </td>
   </tr>

  *php coding*
   <tr>
      <td align="right" colspan="4" class="smallText">
*php codings...*
      </td>
   </tr>

*php codings....*

</table>
      </td>

    *php  codings.....*


   </tr>
</table>
      </td>
   ***</tr>***
</table>


those in the 3 *** are the errors.. the error message is as such: The "td" tag was found, but it is not valid due to where it is used. It is nested in another "td" tag and cannot be nested. Did you forget to close the previous "td" tag? .. where did i miss the td tag?
cemplukcute2003



Joined: 27 Dec 2004
Posts: 28

PostPosted: Thu Jan 06, 2005 5:14 pm     Reply with quote

try this one, i add one tag <tr>.

Code:

<table border="0" width="100%" cellspacing="2" cellpadding="2">
  <tr>
    <!-- body_text //-->
      <td width="100%" valign="top">
        * php coding*
        <table border="0" width="100%" cellspacing="0" cellpadding="0">
          <tr>
            <td class="pageHeading"><?php echo HEADING_TITLE; ?></td>
          </tr>
        </table>
        * php coding*
        <table border="0" width="100%" cellspacing="0" cellpadding="0">
          <tr>
            <td valign="top">
              <table border="0" width="100%" cellspacing="0" cellpadding="2">
                <tr class="dataTableHeadingRow">
                  <td width="10%" class="dataTableHeadingContent">
                    <?php echo TABLE_HEADING_ADMINS_ID; ?>
                  </td>
                  <td width="35%" class="dataTableHeadingContent">
                    <?php echo TABLE_HEADING_ADMINS_NAME; ?>
                  </td>
                  <td width="35%" class="dataTableHeadingContent">
                    <?php echo TABLE_HEADING_ADMINS_EMAIL; ?>
                  </td>
                  <td width="20%" class="dataTableHeadingContent" align="right">
                    <?php echo TABLE_HEADING_ACTION; ?>&nbsp;
                  </td>
                </tr>
               
                *php coding*
                <tr> ->i add this
               ***<td class="dataTableContent">
                    <?php echo $admins->fields['admin_id']; ?>
                  </td>
                  <td class="dataTableContent">
                    <?php echo $admins->fields['admin_name']; ?>
                  </td>
                  <td class="dataTableContent">
                    <?php echo $admins->fields['admin_email']; ?>
                  </td>
                  <td class="dataTableContent" align="right">
                    *php coding*
                  </td>***
                </tr>
                * php coding............*
               
                <tr>
                  <td colspan="2">
                    <table border="0" width="100%" cellspacing="0" cellpadding="4">
                      <tr>
                        <td class="smallText" valign="top">
                          * php coding*
                        </td>
                      </tr>
                    </table>
                  </td>
                </tr>
               
                *php coding*
                <tr>
                  <td align="right" colspan="4" class="smallText">
                    *php codings...*
                  </td>
                </tr>

                *php codings....*
              </table>
            </td>
            *php  codings.....*
          </tr>
        </table>
      </td>
***</tr>***
</table>


i hope it can help u
ryulite



Joined: 05 Jan 2005
Posts: 12

PostPosted: Thu Jan 06, 2005 7:59 pm     Reply with quote

Thanks cemplukcute2003, it worked.initially, i tried with another way.

Code:

<table border="0" width="100%" cellspacing="2" cellpadding="2">
  <tr>
    <!-- body_text //-->
      <td width="100%" valign="top">
        * php coding*
        <table border="0" width="100%" cellspacing="0" cellpadding="0">
          <tr>
            <td class="pageHeading"><?php echo HEADING_TITLE; ?></td>
          </tr>-> i got rid of this
        </table>
        * php coding*
        <table border="0" width="100%" cellspacing="0" cellpadding="0">
          <tr>
            <td valign="top">
              <table border="0" width="100%" cellspacing="0" cellpadding="2">
                <tr class="dataTableHeadingRow">
                  <td width="10%" class="dataTableHeadingContent">
                    <?php echo TABLE_HEADING_ADMINS_ID; ?>
                  </td>
                  <td width="35%" class="dataTableHeadingContent">
                    <?php echo TABLE_HEADING_ADMINS_NAME; ?>
                  </td>
                  <td width="35%" class="dataTableHeadingContent">
                    <?php echo TABLE_HEADING_ADMINS_EMAIL; ?>
                  </td>
                  <td width="20%" class="dataTableHeadingContent" align="right">
                    <?php echo TABLE_HEADING_ACTION; ?>&nbsp;
                  </td>
                </tr>
               
                *php coding*
           
               ***<td class="dataTableContent">
                    <?php echo $admins->fields['admin_id']; ?>
                  </td>
                  <td class="dataTableContent">
                    <?php echo $admins->fields['admin_name']; ?>
                  </td>
                  <td class="dataTableContent">
                    <?php echo $admins->fields['admin_email']; ?>
                  </td>
                  <td class="dataTableContent" align="right">
                    *php coding*
                  </td>***
                </tr>
                * php coding............*
               
                <tr>
                  <td colspan="2">
                    <table border="0" width="100%" cellspacing="0" cellpadding="4">
                      <tr>
                        <td class="smallText" valign="top">
                          * php coding*
                        </td>
                      </tr>
                    </table>
                  </td>
                </tr>
               
                *php coding*
                <tr>
                  <td align="right" colspan="4" class="smallText">
                    *php codings...*
                  </td>
                </tr>

                *php codings....*
              </table>
            </td>
            *php  codings.....*
          </tr>
        </table>
      </td>
***</tr>***
</table>


it works also but the table looks abit weird. but anyway really thanks! Laughing
cemplukcute2003



Joined: 27 Dec 2004
Posts: 28

PostPosted: Thu Jan 06, 2005 8:31 pm     Reply with quote

Hehehehe,yeah i know. u use a lot of tag <table>
why don't u use smarty? so u can separate ur php programming with html.
ryulite



Joined: 05 Jan 2005
Posts: 12

PostPosted: Thu Jan 06, 2005 8:33 pm     Reply with quote

smarty?
cemplukcute2003, can you pls give me more information about it?
but will be mess up my stuff?
hehehehe.... behold HTML mixed with PHP newbie.. i dont even know there is such thing .. hahaha Embarassed Laughing
cemplukcute2003



Joined: 27 Dec 2004
Posts: 28

PostPosted: Thu Jan 06, 2005 9:37 pm     Reply with quote

it's okay.
actually, i'm a newbie also in smarty Very Happy my cousin told me about it.
try this website : http://smarty.php.net/
i learn from there. for me, it's quite good.
using smarty we can separate the php file with the html.
sorry if my english is not good enough Embarassed
ryulite



Joined: 05 Jan 2005
Posts: 12

PostPosted: Thu Jan 06, 2005 9:39 pm     Reply with quote

its ok.. where are you from? your english is quite good .. no worries.. haha that webpage,.. will check it out now. but for now it is back to solving more ugly HTML coding Mad
cemplukcute2003



Joined: 27 Dec 2004
Posts: 28

PostPosted: Thu Jan 06, 2005 9:41 pm     Reply with quote

sorry, i forgot to tell u.
smarty similar with using template
ryulite



Joined: 05 Jan 2005
Posts: 12

PostPosted: Thu Jan 06, 2005 9:41 pm     Reply with quote

ahh so i guess i got the right page just now...
but will it messy up your stuff?
cemplukcute2003



Joined: 27 Dec 2004
Posts: 28

PostPosted: Thu Jan 06, 2005 9:43 pm     Reply with quote

hahahaha, i haven't speaking in english for a long time. i come from indonesia, what about u?
ok, good luck with ur confusing HTML coding, hahahahaha Laughing
ryulite



Joined: 05 Jan 2005
Posts: 12

PostPosted: Thu Jan 06, 2005 9:45 pm     Reply with quote

hahah ..thanks for the advice... my eyes are spinning now Shocked
hows things there now? are you from Jarkata? i know alil Berhasa Indonesia... hahaha
I am a Singaporean Chinese.. Laughing
cemplukcute2003



Joined: 27 Dec 2004
Posts: 28

PostPosted: Thu Jan 06, 2005 9:47 pm     Reply with quote

sorry, but what do u mean by : ahh so i guess i got the right page just now... ??
yeah, i think u'll have to change some of your coding. but i don't suggest u to do it now, is this coding for work?
ryulite



Joined: 05 Jan 2005
Posts: 12

PostPosted: Thu Jan 06, 2005 9:49 pm     Reply with quote

sorry i am not sure i understand which are you refering too
cemplukcute2003



Joined: 27 Dec 2004
Posts: 28

PostPosted: Thu Jan 06, 2005 9:51 pm     Reply with quote

Hah, really?
right now i'm in s'pore, learning smarty from my cousin Smile
i'm from surabaya, chinese also. and the correct word is Bahasa not Berhasa Very Happy
u asked me this : but will it messy up your stuff?
so i answer : yeah, i think u'll have to change some of your coding. but i don't suggest u to do it now, is this coding for work?
or am i got the wrong idea? Confused
ryulite



Joined: 05 Jan 2005
Posts: 12

PostPosted: Thu Jan 06, 2005 9:52 pm     Reply with quote

ahh sorry for being slow.. hahaha
ahh sorry for wrong spelling Embarassed ... even my malay is horrible... hahahaha
ya it is for work and for sch.. doing my attachment now.. argh.. Surabaya...... hrmmm never been to indonesia.. wish i could go there one day... Smile
Display posts from previous:   
Post new topic   Reply to topic    HTML Help Forum Index -> HTML Table All times are GMT - 8 Hours
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
HTML Help Archive
Powered by phpBB © 2001, 2005 phpBB Group
HTML Help topic RSS feed 

 
HOSTING / DESIGN
MAKE MONEY

Home
  |   Tutorials   |   Forum   |   Quick List   |   Webmaster Directory   |   About
Copyright ©1997-2002 Idocs and ©2002-2007 HTML Code Tutorial