HTML - Unexpected T_string Error - Please Help!
Hi folks,
I've got an error saying: Parse error: syntax error, unexpected T_STRING in /home/a2387326/public_html/index.html on line 1 Here's my code: <?xml version="1.0" encoding="UTF-8"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title></title><meta http-equiv="refresh" content="0;url= HOME.html" /></head><body></body></html> I used iWeb to build my website, and I've uploaded it to a web host which is different to the domain registrar - I don't know if that makes a difference, but I believe I've set up the DNS stuff correctly anyway... This is driving me crazy - if anyone could help, I'd MASSIVELY appreciate it! Thanks, bloowy Similar TutorialsParse error: syntax error, unexpected T_STRING in /home6/comparea/public_html/search.php on line 340 Partnered up with a buddy to build the website compareacollege.com, he bailed out, unfortunately i know very little about web design, site was fine though, until host made me change password, then the search wouldnt work, the above is the error i was getting, i went into into every page and updated password, actually fixed it about half way through except a little coding was showing up on search page, after i updated every password that error is all that showed up on search, now several months later the page doesnt even show up at all, like its a bad link, not sure what do, hopefully you guys can help me out, hopefully an easy fix Code: Parse error: syntax error, unexpected T_DNUMBER in /home/a6989956/public_html/include/database.php on line 24 Can anyone please tell me whats wrong? Here is line a few lines Code: class MySQLDB { var $connection; //The MySQL database connection var $num_active_users; //Number of active users viewing site var $num_active_guests; //Number of active guests viewing site var $num_members; //Number of signed-up users /* Note: call getNumMembers() to access $num_members! */ /* Class constructor */ function MySQLDB(){ /* Make connection to database */ $this->connection = mysql_connect(hostname, username, ********) or die(mysql_error()); mysql_select_db(database, $this->connection) or die(mysql_error()); /** * Only query database to find out number of members * when getNumMembers() is called for the first time, * until then, default value set. */ $this->num_members = -1; if(TRACK_VISITORS){ /* Calculate number of users at site */ $this->calcNumActiveUsers(); /* Calculate number of guests at site */ $this->calcNumActiveGuests(); } } line 24-25 is Code: $this->connection = mysql_connect(hostname, username, ********) or die(mysql_error()); mysql_select_db(database, $this->connection) or die(mysql_error()); PLEASE HELP! Hello! I hope you can help. This code: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <style type="text/css"> .container {display: table; border-collapse: collapse} .row {display: table-row} .cell {border: 3px solid red} .map{width:480; border:4px solid #C63; margin:0} </style> <link type="text/css" rel="stylesheet" href="GA.css"/> </HEAD> <BODY> <div class="container"> <div class="row"> <div class="cell"><IMG class="map"SRC="mapA.jpg"alt='PAP'></div> <div class="cell"><IMG class="map"SRC="mapB.jpg"alt='Pacot'></div> </div></div> </BODY></HTML> gives the expected red outer borders and brown inner borders. But... what is the blue (empty) space between them? I'm having an annoying problem that I'm not understanding why it doesn't work. At this point I'm sure it's something simple I'm overlooking. I have a horizontal accordion menu, which is using a UL, now in my Services section of the menu, I have another UL that only shows the first item, and the button that is suppose to be there disappears. According to W3 validation tools, all of my HTML and CSS is error free, so not sure why it's behaving like this. The website is http://dev.jabrowndesigns.com Thanks for any advice. P.S. The menu doesn't work IE for some reason, haven't quite reached it yet as it's not too high on my list at the moment, but if anyone knows off the bat how to fix it, thanks for that too! Hello- Thank you in advance to anyone kind enough to give my problem thought. Please remove all brackets below, (excuse the language, not my company). Thank you. The problem is on this page: http://www.pitb[i]tch.com internet explorer firefox (how its supposed to be) (please dont mind the missing plug ins. here is the code for the ticker: HTML Code: #tickertape{ position:relative; layer-background-color:#000000; height: 30px; width: 455px; text-align:center; vertical-align:middle; } #subtickertape{ background-color:black; position:absolute; border: 1px solid #000000; height: 30px; width: 455px; text-align:center; vertical-align:middle; } .subtickertapefont{ font:bold 14px Verdana; text-decoration:none; color:white; } .subtickertapefont a{ color:white; text-decoration:none; } Code: <script language="JavaScript1.2"> var speed=4500 var news=new Array() news[0]="<a href='http://www.myspace.com/pit*****clothing' target='_blank'>Check Us Out on Myspace.com!</a>" news[1]="<a href='http://www.opmden.com' target='_blank'>Check out OPM!</a>" news[2]="<a href='../photos.htm'>New photos being added! Check it out!</a>" var fadescheme=0 //set 0 to fade bgcolor from (white to black), 1 for (black to white) var hex=(fadescheme==0)? 255 : 0 var startcolor=(fadescheme==0)? "rgb(255,255,255)" : "rgb(0,0,0)" var endcolor=(fadescheme==0)? "rgb(0,0,0)" : "rgb(255,255,255)" var frame=20; var ie=document.all var ns6=document.getElementById var ns4=document.layers i=0 tickerobject=ie? subtickertape: ns6? document.getElementById("subtickertape") : document.tickertape.document function regenerate(){ window.location.reload() } function regenerate2(){ if (document.layers) setTimeout("window.onresize=regenerate",450) } function bgcolorfade() { // 20 frames fading process if(frame>0) { hex=(fadescheme==0)? hex-12 : hex+12 // increase or decrease color value depd on fadescheme tickerobject.style.backgroundColor="rgb("+hex+","+hex+","+hex+")"; // Set color value. frame--; setTimeout("bgcolorfade()",20); } else{ tickerobject.style.backgroundColor=endcolor; frame=20; hex=(fadescheme==0)? 255 : 0 } } function updatecontent(){ if (ie||ns6) bgcolorfade() if (ns4){ tickerobject.subtickertape.document.write('<span class="subtickertapefont">'+news[i]+'</span>') tickerobject.subtickertape.document.close() } else tickerobject.innerHTML=news[i] if (i<news.length-1) i++ else i=0 setTimeout("updatecontent()",speed) } </script> If I forgot any info let me know and I'll tell you. Please help! My friend's race is friday and I'd hate for her site to not be up Thank you so much in advance! ~beth. beth@suburbannoizerecords.com I am currently working on a home page for my new website. so far it is going quite well other than one problem. Basically my template which i downloaded is not doing what i want it to do. The problem is positioning, i am tryning to position my navigation bar, so that it is on the left side and my content container on the right. However i do not want my container on the very right as i am planning to use an advertising service such as google adsense. This is what i would like it to look like: Whenever i type in my css file in the code for the content "margin-left:"250px"; (my navigation is 220px). it causes my navigation bar to move down. Whenever i type in "margin-right:700px;" the content column clings to the left no mater how many pixels i type in, it always cligns to the left as if it is afraid of the right side! The html, css files and images are placed at the bottom of this post in a zip file incase the following css code is not enough. Code: My css code for navigation(#left) and content(#right). #left { width: 220px; float: left; margin-left: 20px; } #right { width: 450px; margin-right: 250px; } I've a Syntax error with the following code, any helpwould be grateful <div class="menuBar c2"><a class="menuButton" href="" onclick="return buttonClick(event, 'lifesavingmenu');" onmouseover="buttonMouseover(event, 'lifesavingmenu');">Lifesaving<\/a> <a class="menuButton" href="" onclick="return buttonClick(event, 'mnoticesmenu');" onmouseover="buttonMouseover(event, 'mnoticesmenu');">"M" Notices<\/a> <a class="menuButton" href="" onclick="return buttonClick(event, 'stabilitymenu');" onmouseover="buttonMouseover(event, 'stabilitymenu');">Stability<\/a> <a class="menuButton" href="" onclick="return buttonClick(event, 'radarmenu');" onmouseover="buttonMouseover(event, 'radarMenu');">Radar<\/a> <a class="menuButton" href="" onclick="return buttonClick(event, 'merchantnavymenu');" onmouseover="buttonMouseover(event, 'merchantnavymenu');">Merchant Navy<\/a> <a class="menuButton" href="" onclick="return buttonClick(event, 'alterationsmenu');" onmouseover="buttonMouseover(event, 'alterationsmenu');">Alterations<\/a> <a class="menuButton" href="" onclick="return buttonClick(event, 'lightrecognitionmenu');" onmouseover="buttonMouseover(event, 'lightrecognitionmenu');">Light Recognition<\/a> <a class="menuButton" href="" onclick="return buttonClick(event, 'checklistsmenu');" onmouseover="buttonMouseover(event, 'checklistsmenu');">Checklists<\/a> <a class="menuButton" href="" onclick="return buttonClick(event, 'chartworkmenu');" onmouseover="buttonMouseover(event, 'chartworkmenu');">Chartwork<\/a> <a class="menuButton" href="" onclick="return buttonClick(event, 'situationsmenu');" onmouseover="buttonMouseover(event, 'situationsmenu');">Situations<\/a> <a class="menuButton" href="" onclick="return buttonClick(event, 'photogallerymenu');" onmouseover="buttonMouseover(event, 'alterationsmenu');">Photo Gallery<\/a><\/div> Hi all, I have recently begun updating my website to XHTML and I have encountered the following error and I am not sure what I am doing incorrectly. Any advice would be very welcome. http://www.dynamic-xchange.com/DXServices.php http://validator.w3.org/check?uri=ht...doctype=Inline Best Regards, Simon Ok i have this one error and ive deleted the entire line but it repeats the same error again because the link below it has the same error aswel.. Not sure what the error is.. Any ideas please? CLICK HERE TO SEE THE XHTML VALIDATION ERROR Ive pasted the error below aswel.. # Error Line 61 column 96: there is no attribute "target". ...l_2_briefs/IND382_brief.html" target="_blank">IND382</a><br /> You have used the attribute named above in your document, but the document type you are using does not support that attribute for this element. This error is often caused by incorrect use of the "Strict" document type with a document that uses frames (e.g. you must use the "Transitional" document type to get the "target" attribute), or by using vendor proprietary extensions such as "marginheight" (this is usually fixed by using CSS to achieve the desired effect instead). This error may also result if the element itself is not supported in the document type you are using, as an undefined element will have no supported attributes; in this case, see the element-undefined error message for further information. How to fix: check the spelling and case of the element and attribute, (Remember XHTML is all lower-case) and/or check that they are both allowed in the chosen document type, and/or use CSS instead of this attribute. If you received this error when using the <embed> element to incorporate flash media in a Web page, see the FAQ item on valid flash. Hello all I have created a page that takes and display some data from an xml file, it works fine on internet explorer, but when I tried to run it on the Mozilla FireFox there was no data any help?? Ok hi everyone hows it going! Ive been trying to get rid of one xhtml error and its prooving harder then I antisipated to remove it! CLICK HERE TO SEE THE VALIDATION PAGE CLICK HERE TO SEE THE SITE IN QUESTION Please if this is something easy and im missing it please let me know! I am trying to help a friend with his website after his admin left. The site was set up years ago and was never finished. He had a simple web form that would send an email using the code below. The previous guy had the output going to himself and then he would fwd to the sites owner. Strange but not sure why. I just went in to edit the email address, but now I get a "The requested URL /_derived/nortbots.htm was not found on this server." after hitting submit. I googled the error and the only thing I can find is that possibly the original page was created in Frontpage and after opening the file in Notepad++ the file lost some FP attribute. Any ideas what I should try? Thanks Here is the code: <html> <head> <title> Newsletter Registration</title> <meta name="description" content="domain.com" /> <meta http-equiv="Content-type" content="text/html; charset=UTF-8" /> <script src="/resource/js/main.js" type="text/javascript"></script> <link href="/resource/css/main.css" type="text/css" rel="stylesheet" media="all" /> </head> <body onload="initJS();"> <div id="wrapper"> <table id="mainTable" cellspacing="0" cellpadding="0"> <tr id="banner"> <td style="font-family:Arial,sans-serif; color:white; text-align:right; vertical-align:middle; padding:5px 30px 0 0;" colspan="3"> <p style="padding:0; margin:0;"> <!--webbot bot="Include" U-Include="resource/include/quicksearch.html" tag="body" startspan--> <form method=get action="/cgi-bin/listman/exec/search.cgi"> <input type="hidden" name="search" value="1"> <input type="hidden" name="perpage" value="10"> <input type="hidden" name="marknew" value="1"> <input type="hidden" name="euro_numbers" value="0"> <input type="hidden" name="sort_order" value="3,abc,forward" /> CITY <select name="lfield3_match" size="1"> <option value="" selected>Any</option> <option>Affton</option> <option>Woodson Terrace</option> </select> ZIP <input type="text" size="10" name="lfield5_match" /> <input type="submit" value="Quick Search" /> </form> <!--webbot bot="Include" i-checksum="56169" endspan --></p> </td> </tr> <tr id="menu"> <td style="vertical-align:top;" colspan="3"> <map id="menu" name="menu"> <area shape="rect"#Home coords="32,4,94,24" href="/index.html" title="Home" /> <area shape="rect"#List Properties coords="151,3,292,26" href="/cgi-bin/listman/exec/search.cgi" title="List Properties" /> <area shape="rect"#Rentals coords="360,4,429,25" href="/rentals.html" title="Rentals" /> <area shape="rect" coords="491,3,604,25" href="./contactus.html" title="Contact Us" /> <area shape="rect"#About Us coords="673,3,773,25" href="/aboutus.html" title="About Us" /> <area shape="rect"#Benjy's Ads coords="832,4,946,26" href="/domain.html" title="Benjy's Ads" /> <area shape="default" nohref="nohref" alt="" /> </map> <img usemap="#menu" style="width:974px; height:30px; padding-bottom:15px; border:0;" src="./resource/image/menu.jpg" title="Home" /> </td> </tr> <tr> <td style="width:30px; height:100%; background:#3300cc url('/resource/image/shadowleft.jpg') repeat-y top left; vertical-align:top; text-align:right"> <div style="height:100%; background:url('/resource/image/bgbottomleftcol.jpg') no-repeat bottom left;"> </div> </td> <td style="width:941px; vertical-align:top;"> <div id="content" style="height:100px; border:1px solid black; overflow:auto; padding:15px; background-color:white;"> <div style="border:1px solid black; background-color:lightgrey;"> <h2 style="padding:5px; margin:0;">Benjys Newsletter Registration</h2> </div> <ul> <li>New Properties "<font color="#0000FF">Last Seven Days</font>", </li> <li>New Properties "<font color="#0000FF">Last 30 Days</font>", and </li> <li>A Complete Listing of all Properties</li> </ul> <p align="center"><font color="#0000FF"><b>To join the Newsletter, just enter the following information below.</b></font></p> <form method="POST" name="registration" action="_derived/nortbots.htm" webbot-action="--WEBBOT-SELF--" onSubmit="location.href='_derived/nortbots.htm';return false;" webbot-onSubmit=""> <!--webbot bot="SaveResults" U-File="_private/form_results.csv" S-Format="TEXT/CSV" S-Label-Fields="TRUE" B-Reverse-Chronology="FALSE" S-Email-Format="TEXT/PRE" S-Email-Address="sander.liebert@gmail.com" B-Email-Label-Fields="TRUE" B-Email-Subject-From-Field="FALSE" S-Email-Subject="Info - Benjy's Newsletter Registration Page" S-Builtin-Fields startspan --><input NAME="VTI-GROUP" TYPE="hidden" VALUE="0"><!--webbot bot="SaveResults" endspan i-checksum="37496" --> <div align="center"> <table border="0" width="86%" id="table1"> <tr> <td width="211" align="center">First Name<br> <input type="text" name="First" size="20" style="border: 1px solid #0000FF; background-color:#CCFFFF"> </td> <td width="258" align="center">Last Name<br> <input type="text" name="Last" size="25" style="border: 1px solid #0000FF; background-color:#CCFFFF"> </td> <td align="center">Email Address<br> <input type="text" name="Email" size="40" style="border: 1px solid #0000FF; background-color:#CCFFFF"></td> </tr> <tr> <td width="211"> </td> <td width="258"> </td> <td> </td> </tr> </table> </div> <p align="center"> <input type="submit" value="Submit" name="B1" style="border: 1px solid #0000FF"> <input type="reset" value="Reset" name="B2" style="border: 1px solid #0000FF"></p> </form> </div> </td> <td style="width:30px; height:100%; background:#3300cc url('/resource/image/shadowright.jpg') repeat-y top right; vertical-align:top"> <div style="height:100%; background:url('/resource/image/bgbottomrightcol.jpg') no-repeat bottom right;"> </div> </td> </tr> </table> </div> </body> </html> Hi, can anyone help me understand why am i getting this error: Page: http://www.mysite.com Category: 102 - SCRIPT not commented Date: 3/30/09 Severity: 4 Threshold: Message: No comment around script content thanks to all for ur time. [url="http://www.buildit.sitesell.com/lavy.html"]SEO friendly Websites[\URL] Hello, I am having a problem with this xml document parsing. Code: <?xml version="1.0" encoding="UTF-8" standalone="yes" ?> <!-- ScanMaster and DigiCam FAQ --> <?xml-stylesheet type="text/css" href="assets/FAQ.css" ?> <FAQ> <Title>Jackson Electronics Products</Title> <SubTitle>Frequently Asked Questions</SubTitle> <product>The ScanMaster</product> <question>How do I scan slides?</question> <answer> <! [CDATA["You can scan slides using the JE Transparency Adapter (part number STA8901) available from Jackson Electronics."]]> </answer> <question>Where can I find the latest drivers for my ScanMaster?</question> <answer> <! [CDATA["You can download the latest software drivers from the Jackson Electronics Web page."]]> </answer> <question>What is the largest sheet that I can scan?</question> <answer> <! [CDATA["8.5 x 14 in (216 x 356 mm)."]]> </answer> <question>How do I fax with my ScanMaster?</question> <answer> <! [CDATA["You can turn your scanner into a fax machine by purchasing the FaxRight add-on component (part number STA4500) available from Jackson Electronics."]]> </answer> <product>DigiCam</product> <question>What is the difference between optimal and digital zoom?</question> <answer> <! [CDATA["With optical zoom the Digicam's lense phyiscal moves inside the camera; with digital zoom, the camera's 'electronic brain' zooms the image. If you zoom too much, your image will become pixelated."]]> </answer> <question>What sort of batteries should I use with the DigiCam?</question> <answer> <! [CDATA["Nickel Metal Hydride (NiMH) batteries work the best and having the longest lifetime. Nickel-Cadium batteries also work very well as do Alkaline batteries. Do not use Lithium batteries."]]> </answer> <question>What resolution should I use for 4x6 in. photos?</question> <answer> <! [CDATA["We recommend 640x480 for 4x6 images, 1024x768 for 5x7 in. photos, and 1600x1200 for 8x10 in photos."]]> </answer> <question>Can the DigiCam be harmed by airport X-ray machines?</question> <answer> <! [CDATA["No, there is no evidence that X-ray machines can affect the performance or quality of DigiCam photos."4]]> </answer> </FAQ> This is the error I get when trying to parse it in Internet Explorer. Quote: Jackson Electronics Products Frequently Asked Questions The ScanMaster How do I scan slides? The XML page cannot be displayed Cannot view XML input using CSS style sheet. Please correct the error and then click the Refresh button, or try again later. -------------------------------------------------------------------------------- Whitespace is not allowed at this location. Error processing resource 'file:///G:/Course Technology/XML/datadisks/Tutorial.... <! [CDATA["You can scan slides using the JE Transparency Adapter (part number STA8901) available from Jackson Electronics... This is the error I get in Firefox Quote: Jackson Electronics Products Frequently Asked Questions The ScanMaster How do I scan slides? The XML page cannot be displayed Cannot view XML input using CSS style sheet. Please correct the error and then click the Refresh button, or try again later. -------------------------------------------------------------------------------- Whitespace is not allowed at this location. Error processing resource 'file:///G:/Course Technology/XML/datadisks/Tutorial.... <! [CDATA["You can scan slides using the JE Transparency Adapter (part number STA8901) available from Jackson Electronics... I will do a little bit more reading to see if I can find the answer. Does anyone have a good XML tutorial site? The onlookers see most clearly. Thanks! Code: <head> <script type="text/javascript"> var dur = new Array(501); dur[0] = 128; dur[1] = 32; dur[2] = 32; dur[3] = 32; dur[4] = 32; dur[5] = 32; .... dur[498] = 32; dur[499] = 32; dur[500] = 32; function show(color) { for (var i=0;i<500;++i) { var obj = document.getElementById("wiki"+i); if (dur[i] <300) { obj.style.color = 'color'; } } </script> </head> <body class="mediawiki ns-0 ltr page-Cyber"> <form name="myform1"> <p><input type="button" value="Display less 10 days" onClick="show(red)"></p> </form> <form name="myform2"> <p><input type="button" value="Display less 30 days" onClick="show(yellow)"></p> </form> <div id="wiki439" id="globalWrapper"> <div id="wiki130" id="column-content"> <div id="wiki17" id="content"> it says that end tag for table is not finished. here is the sequence <form action="$vboptions[forumhome].php" method="get"> <table cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" width="$stylevar[outertablewidth]" class="page" align="center"></table> <div align="center"> apreciate any help you can give me I've gotten this error even though I do have all the objects declared: Line384 Error: 'window.document.patentfrm.patentList' is null or not an object patentfrm: refers to the form name patentList: refers to the name of the list this error occurs when ever I try to add a patent a the list any possible reasons? |