| View previous topic :: View next topic |
| Author |
Message |
ryulite
Joined: 05 Jan 2005 Posts: 12
|
Posted: Wed Jan 05, 2005 11:04 pm hi.. can anyone help? |
|
|
|
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; ?> </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
|
Posted: Thu Jan 06, 2005 5:14 pm |
|
|
|
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; ?>
</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
|
Posted: Thu Jan 06, 2005 7:59 pm |
|
|
|
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; ?>
</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!  |
|
cemplukcute2003
Joined: 27 Dec 2004 Posts: 28
|
Posted: Thu Jan 06, 2005 8:31 pm |
|
|
|
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
|
Posted: Thu Jan 06, 2005 8:33 pm |
|
|
|
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  |
|
cemplukcute2003
Joined: 27 Dec 2004 Posts: 28
|
Posted: Thu Jan 06, 2005 9:37 pm |
|
|
|
it's okay.
actually, i'm a newbie also in smarty 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  |
|
ryulite
Joined: 05 Jan 2005 Posts: 12
|
Posted: Thu Jan 06, 2005 9:39 pm |
|
|
|
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  |
|
cemplukcute2003
Joined: 27 Dec 2004 Posts: 28
|
Posted: Thu Jan 06, 2005 9:41 pm |
|
|
|
sorry, i forgot to tell u.
smarty similar with using template |
|
ryulite
Joined: 05 Jan 2005 Posts: 12
|
Posted: Thu Jan 06, 2005 9:41 pm |
|
|
|
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
|
Posted: Thu Jan 06, 2005 9:43 pm |
|
|
|
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  |
|
ryulite
Joined: 05 Jan 2005 Posts: 12
|
Posted: Thu Jan 06, 2005 9:45 pm |
|
|
|
hahah ..thanks for the advice... my eyes are spinning now
hows things there now? are you from Jarkata? i know alil Berhasa Indonesia... hahaha
I am a Singaporean Chinese..  |
|
cemplukcute2003
Joined: 27 Dec 2004 Posts: 28
|
Posted: Thu Jan 06, 2005 9:47 pm |
|
|
|
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
|
Posted: Thu Jan 06, 2005 9:49 pm |
|
|
|
| sorry i am not sure i understand which are you refering too |
|
cemplukcute2003
Joined: 27 Dec 2004 Posts: 28
|
Posted: Thu Jan 06, 2005 9:51 pm |
|
|
|
Hah, really?
right now i'm in s'pore, learning smarty from my cousin
i'm from surabaya, chinese also. and the correct word is Bahasa not Berhasa
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?  |
|
ryulite
Joined: 05 Jan 2005 Posts: 12
|
Posted: Thu Jan 06, 2005 9:52 pm |
|
|
|
ahh sorry for being slow.. hahaha
ahh sorry for wrong spelling ... 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...  |
|
|