tk1 Posted January 5, 2007 Report Share Posted January 5, 2007 function opentable($title) { echo "<table cellpadding='0' cellspacing='0' width='100%' class='border'>\n<tr> $content <td class='capmain'> <img height='28px' src=../../images/blk_01.gif /><img src=../../images/blk_01_tile.gif width=510 height=28 /><img src=../../images/blk_02.gif /><br><img src=../../images/blk_03.gif /><img width=510 height=17 src=../../images/blk_03_tile.gif /><img src=../../images/blk_04.gif /><br><img src=../../images/blk_05.gif /><img width=510 height=20 src=../../images/blk_05_tile.gif /><img src=../../images/blk_06.gif /></td> </tr> <tr> <td class='main-body2'><img height=100% width=27 src=../../images/blk_l.gif /></td> <td class='main-body'>\n"; } function closetable() { echo "</td> <td class='main-body2'><img height=100% width=27 src=../../images/blk_r.gif /></td> </tr> <tr> <td class='capmain'><img src=../../images/blk_07.gif /><img width=510 height=28 src=../../images/blk_07_tile.gif /><img src=../../images/blk_08.gif /><br><img src=../../images/blk_09.gif /><img width=510 height=28 src=../../images/blk_09_tile.gif /><img src=../../images/blk_10.gif /></td> </tr></table>\n"; } Lieta taada ka man sanaca viss skibi : (vajag lai piemeram texsts butu ieksaa formaa! mokos jav kaadas 4h visu sataisit viss sanacis bet at tadu kluudu, kaads nevar izpalidzeet?) Link to comment Share on other sites More sharing options...
teror Posted January 5, 2007 Report Share Posted January 5, 2007 Izmanto validatoru http://validator.w3.org/ Link to comment Share on other sites More sharing options...
tk1 Posted January 5, 2007 Author Report Share Posted January 5, 2007 This page is not Valid (no Doctype found)! Below are the results of attempting to parse this document with an SGML parser. 1. Error Line 1 column 0: character "f" not allowed in prolog. function opentable($title) { ✉ 2. Error Line 4 column 0: character "$" not allowed in prolog. $content <td class='capmain'> <img height='28px' src=../../images/blk_01.gif />< ✉ 3. Error Line 4 column 30: no document type declaration; will parse without validation. $content <td class='capmain'> <img height='28px' src=../../images/blk_01.gif />< ✉ 4. Error Line 4 column 59: character data is not allowed here. ...pmain'> <img height='28px' src=../../images/blk_01.gif /><img src=../../image You have used character data somewhere it is not permitted to appear. Mistakes that can cause this error include putting text directly in the body of the document without wrapping it in a container element (such as a <p>aragraph</p>) or forgetting to quote an attribute value (where characters such as "%" and "/" are common, but cannot appear without surrounding quotes). ✉ 5. Error Line 4 column 90: document type does not allow element "IMG" here. ...../../images/blk_01.gif /><img src=../../images/blk_01_tile.gif width=510 hei The element named above was found in a context where it is not allowed. This could mean that you have incorrectly nested elements -- such as a "style" element in the "body" section instead of inside "head" -- or two elements that overlap (which is not allowed). One common cause for this error is the use of XHTML syntax in HTML documents. Due to HTML's rules of implicitly closed elements, this error can create cascading effects. For instance, using XHTML's "self-closing" tags for "meta" and "link" in the "head" section of a HTML document may cause the parser to infer the end of the "head" section and the beginning of the "body" section (where "link" and "meta" are not allowed; hence the reported error). ✉ 6. Error Line 4 column 94: character data is not allowed here. ..../images/blk_01.gif /><img src=../../images/blk_01_tile.gif width=510 height= ✉ 7. Error Line 4 column 150: document type does not allow element "IMG" here. ...gif width=510 height=28 /><img src=../../images/blk_02.gif /><br><img src=../ ✉ 8. Error Line 4 column 154: character data is not allowed here. ...width=510 height=28 /><img src=../../images/blk_02.gif /><br><img src=../../i ✉ 9. Error Line 4 column 177: document type does not allow element "BR" here. ...img src=../../images/blk_02.gif /><br><img src=../../images/blk_03.gif /><img ✉ 10. Error Line 4 column 446: end tag for element "TD" which is not open. ...mg src=../../images/blk_06.gif /></td> The Validator found an end tag for the above element, but that element is not currently open. This is often caused by a leftover end tag from an element that was removed during editing, or by an implicitly closed element (if you have an error related to an element being used where it is not allowed, this is almost certainly the case). In the latter case this error will disappear as soon as you fix the original problem. If this error occured in a script section of your document, you should probably read this FAQ entry. ✉ 11. Error Line 5 column 4: end tag for element "TR" which is not open. </tr> ✉ 12. Error Line 7 column 38: an attribute value must be a literal unless it contains only name characters. <td class='main-body2'><img height=100% width=27 src=../../images/blk_l.gif /></ You have used a character that is not considered a "name character" in an attribute value. Which characters are considered "name characters" varies between the different document types, but a good rule of thumb is that unless the value contains only lower or upper case letters in the range a-z you must put quotation marks around the value. In fact, unless you have extreme file size requirements it is a very very good idea to always put quote marks around your attribute values. It is never wrong to do so, and very often it is absolutely necessary. ✉ 13. Error Line 12 column 38: an attribute value must be a literal unless it contains only name characters. <td class='main-body2'><img height=100% width=27 src=../../images/blk_r.gif /></ ✉ 14. Error Line 16 column 14: end tag for element "TABLE" which is not open. </tr></table>\n"; Link to comment Share on other sites More sharing options...
andrisp Posted January 5, 2007 Report Share Posted January 5, 2007 tk1, nevajag jau validēt php sourci, bet gan saģenerēto html. Link to comment Share on other sites More sharing options...
tk1 Posted January 5, 2007 Author Report Share Posted January 5, 2007 kads labak kludu pateikt nevaretu ?? Link to comment Share on other sites More sharing options...
andrisp Posted January 5, 2007 Report Share Posted January 5, 2007 Tak tajā murgā neviens negrib iedziļināties. Iekopē tad vismaz ģenerēto sourci šeit. Bet izmanto paste.php.lv. Link to comment Share on other sites More sharing options...
tk1 Posted January 5, 2007 Author Report Share Posted January 5, 2007 (edited) Ka to saprast genereto sourci? sito - http://paste.php.lv/4922 ? Edited January 5, 2007 by tk1 Link to comment Share on other sites More sharing options...
andrisp Posted January 5, 2007 Report Share Posted January 5, 2007 To kas reāli tiek nosūtīta klientam (browserim). Paskaties View -> Source un sameklē, kur tev tas kods ir un iemet paste.php.lv Link to comment Share on other sites More sharing options...
tk1 Posted January 5, 2007 Author Report Share Posted January 5, 2007 Sis? - http://paste.php.lv/4923 Link to comment Share on other sites More sharing options...
teror Posted January 5, 2007 Report Share Posted January 5, 2007 Šito arī ņem un validē. Validators parādīs visas kļūdas, kuras tad arī labo tajos fusion miljons echo. Link to comment Share on other sites More sharing options...
tk1 Posted January 5, 2007 Author Report Share Posted January 5, 2007 Prikols man vinjs tik pasaka ka katrai bilditei japiebaz alt='' ar bildes nos un ka width='100%' neder :D citu erroru vsp nav! Link to comment Share on other sites More sharing options...
andrisp Posted January 5, 2007 Report Share Posted January 5, 2007 Tikai nevajag muldēt :). Link to comment Share on other sites More sharing options...
tk1 Posted January 5, 2007 Author Report Share Posted January 5, 2007 labi palicis vsp tik 1 errors tik nezinu ka labot visi tie alt ir izlaboti bet mainijies nekas nava :P http://tkd.1.vg/ !!!!! Link to comment Share on other sites More sharing options...
andrisp Posted January 5, 2007 Report Share Posted January 5, 2007 (edited) Pievieno doctype, tas daudz ko var savest kārtībā. Pagūglē, kas tas tāds ir. Bet vispār problēma ir tāda, ka tev tablei ir width: 100%; Edited January 5, 2007 by andrisp Link to comment Share on other sites More sharing options...
tk1 Posted January 5, 2007 Author Report Share Posted January 5, 2007 pievienoju un tgd viss istas vell briesmigak..!! Link to comment Share on other sites More sharing options...
Recommended Posts