foxc Posted September 20, 2009 Report Share Posted September 20, 2009 Sveicināti. Es ieliku šeit 2 html failus. Lūdzu vai jūs varētupateikt kur šeit man ir kāda minimālākā kļūda. ? Jo http://validator.w3.org/ saka ka man ir 23 errori: Liels paldies Index.php <? include("include/functions.php"); konektesanas(); $rezultats = mysql_query("SELECT * FROM settings"); $seti = mysql_fetch_array($rezultats); if($seti['statuss'] == 'on'){ head(); ?> <div id="viewpreci" align="center" style="display:none;background:url(images/5px.png);height:100%;width:100%;position:absolute;"> <br /><br /><br /><br /> <div style="position:relative;top:20px;width:440px;" align="right" ><img src="images/close.png" style="cursor:pointer;" onclick="aizvert();" onmouseover="this.src = 'images/closeh.png';" onmouseout="this.src = 'images/close.png'"></div> <div id="mazins" align="center" style="display:none;background:#ededed;height:400;width:400px;"> <iframe id="atversimpreci" src="openpreci.php?id=0" class="iframs"></iframe> </div> </div> <div id="mainbg"> <div style="background-image:url(images/ontop.png);background-repeat:no-repeat;height:70px;"></div> <div style="height:20px;"></div> <table width="900" id="maintable" align="center"> <tr> <td align="center"> <table width="100%"> <tr> <td style="padding-left:40px;"> <span style="color:<?echo $seti['color'];?>;font-size:<?echo $seti['size'];?>pt;font-weight:<?echo $seti['bold'];?>;"><?echo $seti['logo'];?></span> </td> </tr> <tr> </td> </tr> <tr> <td style="padding-left:50px;background:url(images/toprnb.png) no-repeat center;height:33px;color:#fff;"> <div id="logostrip"> <b><small><a href='#'>Sākums</a></small></b> | <b><small><a href='#'>Kontakti</a></small></b> | <b><small><a href='#'>Atbalsts</a></small></b> </td> </tr> <tr> <td style="padding-left:50px;background:url(images/middlernb.png) repeat-y center;color:#fff;"> <table width="100%" align="center" cellpadding="10"> <tr> <? $x = 0; $result = mysql_query("SELECT * FROM preces"); while($row = mysql_fetch_array($result)){ ?> <td> <div style="heigh:130px;width:100px;border:1px solid #f8f8f8;text-align:center;cursor:pointer;border:1px solid #d0d0d0;" onclick="openprece('<?=$row['id']?>')"> <div style="background:#fff;color:#000;border-bottom:1px solid #b0b0b0;"><?=$row['nosaukums'];?></div> <div style="background:#fff;"><img src="images/preces/<?=$row['bilde'];?>.png" alt="<?=$row['alt'];?>" width="80"/></div> <div style="background:#fff;color:#000;border-top:1px solid #b0b0b0;"><?=$row['cena'];?>Ls</div> </div> </td> <? $x = $x + 1; if($x == '5'){ echo"</tr>"; $x = 0; } } ?> </table> </td> </tr> <tr> <td style="padding-left:50px;background:url(images/bottomrnb.png) no-repeat center;height:33px;color:#fff;"> <b><center><small><small>Copyright © SMS Veikals <?echo date("Y");?> <script type="text/javascript" src="http://cc12874.counter.hackers.lv/cc.php"></script><noscript><div><a href="http://counter.hackers.lv/"><img src="http://cc12874.counter.hackers.lv/counter.php?uid=12874" alt="hackers counter system" /></a></div></noscript></small></small></center></b> </td> </tr> </table> <br /> <br /> </td> </tr> </table> </div> <? foot(); ?> <?}else{ ?> <? head(); ?> <div id="mainbg"> <div style="background-image:url(images/ontop.png);background-repeat:no-repeat;height:70px;"></div> <div style="height:60px;"></div> <table width="900" id="maintable" align="center"> <tr> <td align="center"> <table width="100%"> <tr> <td style="padding-left:40px;"> <span style="color:<?echo $seti['color'];?>;font-size:<?echo $seti['size'];?>pt;font-weight:<?echo $seti['bold'];?>;"><?echo $seti['logo'];?></span> </td> </tr> <tr> <td style="padding-left:50px;background:url(images/toprnb.png) no-repeat center;height:33px;color:#fff;"> </td> </tr> <tr> <td align="center" style="padding-left:50px;background:url(images/middlernb.png) repeat-y center;color:#fff;"> <b>Veikals uz brīdi ir slēgts!</b> </td> </tr> <tr> <td style="padding-left:50px;background:url(images/bottomrnb.png) no-repeat center;height:33px;color:#fff;"> <b><center><small><small>Copyright © SMS Veikals <?echo date("Y");?> <script type="text/javascript" src="http://cc12874.counter.hackers.lv/cc.php"></script><noscript><div><a href="http://counter.hackers.lv/"><img src="http://cc12874.counter.hackers.lv/counter.php?uid=12874" alt="hackers counter system" /></a></div></noscript></small></small></center></b> </td> </tr> </table> <br /> <br /> </td> </tr> </table> </div> <? foot(); ?> <? }?> Un conctact.php <? include("include/functions.php"); konektesanas(); $rezultats = mysql_query("SELECT * FROM settings"); $seti = mysql_fetch_array($rezultats); if($seti['statuss'] == 'on'){ head(); ?> <div id="mainbg"> <div style="background-image:url(images/ontop.png);background-repeat:no-repeat;height:70px;"></div> <div style="height:20px;"></div> <table width="900" id="maintable" align="center"> <tr> <td align="center"> <table width="100%"> <tr> <td style="padding-left:40px;"> <span style="color:<?echo $seti['color'];?>;font-size:<?echo $seti['size'];?>pt;font-weight:<?echo $seti['bold'];?>;"><?echo $seti['logo'];?></span> </td> </tr> <tr> <td style="padding-left:50px;background:url(images/toprnb.png) no-repeat center;height:33px;color:#fff;"> <div id="logostrip"> <b><small><a href='#'>Sākums</a></small></b> | <b><small><a href='#'>Kontakti</a></small></b> | <b><small><a href='#'>Atbalsts</a></small></b> </td> </tr> <tr> <td style="padding-left:50px;background:url(images/middlernb.png) repeat-y center;color:#fff;"> <table width="100%" align="center" cellpadding="10"> <tr> <br> <b>E-pasts:</b> iviits@gmail.com<br> <b>Skype:</b> mr.iviits <br><br> </table> </td> </tr> <tr> <td style="padding-left:50px;background:url(images/bottomrnb.png) no-repeat center;height:33px;color:#fff;"> <b><center><small><small>Copyright © SMS Veikals <?echo date("Y");?> <script type="text/javascript" src="http://cc12874.counter.hackers.lv/cc.php"></script><noscript><div><a href="http://counter.hackers.lv/"><img src="http://cc12874.counter.hackers.lv/counter.php?uid=12874" alt="hackers counter system" /></a></div></noscript></small></small></center></b> </td> </tr> </table> </td> </tr> </table> </div> <? }?> Quote Link to comment Share on other sites More sharing options...
waplet Posted September 20, 2009 Report Share Posted September 20, 2009 Viss ir ok? ko tu gribi no mums? man liekas ka tur vienā vietā ir noslēgts, bet nav atverts DIV un definē doctype un charsetu Quote Link to comment Share on other sites More sharing options...
bubu Posted September 20, 2009 Report Share Posted September 20, 2009 Pirmkārt, garus koda gabalus jāliek paste.php.lv Un otrkārt, kāpēc tu mums liec minēt, kur tevi r kļūdas? w3 validators pasaka konkrētu vietu, rindu un kļūdas aprakstu. Sāc ar pirmo kļūdu un rādi precīzi kur tā ir un kāda tā ir (kļūdas paziņojumu), un turpini pēc tam ar otru, utt. Quote Link to comment Share on other sites More sharing options...
mefisto Posted September 21, 2009 Report Share Posted September 21, 2009 Emm ... izklausās tā, itkā kļūdu skaits būtu kaut kāds pārsteigums : "vai jūs varētupateikt kur šeit man ir kāda minimālākā kļūda. ? " Pat uzmetot aci ir redzams, ka tu: jauc HTML un XHTML pierakstu. neesi spējīgs izveidot lapu bez tabulām nespēj saprast 3 līmeņus frontend web'am izmanto prezentācijas tagus Ja tu atmestu to savu fantāziju būt par "web developeri", internets no tā tikai iegūtu. Quote Link to comment Share on other sites More sharing options...
SaMay Posted September 22, 2009 Report Share Posted September 22, 2009 Šis kodiņš ir zagts no man zināma cilvēka. Nav smuki tā darīt!! Quote Link to comment Share on other sites More sharing options...
waplet Posted September 22, 2009 Report Share Posted September 22, 2009 atkal emo uzbruks? :? :D Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.