gevo12321 Posted June 17, 2007 Share Posted June 17, 2007 hi im trying to make this code work and it gives me the following error: Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ',' or ';' in /home/content/g/e/v/gevo12321/html/test/home.php on line 82 can someone plz help me with this? <?php include 'connect.php'; $query = mysql_query("SELECT * FROM layout WHERE page = 'home'") or die(mysql_error()); list($button) = mysql_fetch_row($query); echo "( <!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/transitional.dtd\"> <html> <head> <title>Gevsta.com Home</title> <meta http-equiv=\"content-type\" content=\"text/html; charset=iso-8859-1\" /> <link rel=\"shortcut icon\" href=\"images/favicon.ico\"> <link rel=\"stylesheet\" type=\"text/css\" href=\"stylde.css\" /> </head> <body> <div id=\"main\"> <div id=\"left\"> <div id=\"top\"> <dl class=\"left\"> <dt>Latest News</dt> <dd><a href=\"#\">June 2, 2007 - Update 3 - Created an Armenian home page </a></dd> <dd><a href=\"#\">May 25, 2007 - Update 2 - Layout of the website is pretty much complete</a></dd> <dd><a href=\"#\">May 5, 2007 - Update 1 - Decided what the website will be</a></dd> </dl> <div id=\"topbottom\"> </div> </div> <div id=\"content\"> <div id=\"headline\"> <h1>welcome to gevsta.com</h1> </div> <br> <h2>Information</h2> <h3>about the website</h3> <p>This website is still in its development stage. Even though the layout is almost complete, a lot of new content will be added. This website will be an Armenian-English and an English-Armenian dictionary. </p> </div> </div> <div id=\"right\"> <div style=\"background: url(images/topright.gif) no-repeat top right; height: 10px;\"></div> <div id=\"inner\"> <div class=\"left\"><a href=\"index.html\" id=\"usa\">English</a></div> <div class=\"right\"><a href=\"am.htm\" id=\"arm\">Հայերեն</a></div> <form action=\"#\" method=\"post\"> <label for=\"name\">Name:</label> <input type=\"text\" size=\"10\" name=\"name\" id=\"name\" /> <label for=\"pw\">Password:</label><input type=\"password\" size=\"10\" name=\"pw\" id=\"pw\" /> <div style=\"text-align: right;\"><a href=\"\">Register</a> | <input type=\"submit\" class=\"button\" value=\"Go!\" name=\"button\" /></div> <hr> </form> <h5>Site</h5> <ul class=\"nav\"> <li><a href=\"\">$button[0]</a></li> <li><a href=\"\">$button[1]</a></li> <li><a href=\"\">$button[2]</a></li> <li><a href=\"\">$button[3]</a></li> </ul> <h5>Board</h5> <ul class=\"nav\"> <li><a href=\"\">$button[4]</a></li> <li><a href=\"\">$button[5]</a></li> <li><a href=\"\">Staff</a></li> <li><a href=\"\">Members</a></li> <li><a href="">latest posts</a></li> </ul> <h5>Help us </h5> <form class=\"bottom\" action=\"https://www.paypal.com/cgi-bin/webscr\" method=\"post\"> <input type=\"hidden\" name=\"cmd\" value=\"_s-xclick\"> <input type=\"image\" src=\"/images/donate.gif\" border=\"0\" name=\"submit\" alt=\"Donate with PayPal - it's fast, free and secure!\"> <img alt=\"\" border=\"0\" src=\"https://www.paypal.com/en_US/i/scr/pixel.gif\" width=\"1\" height=\"1\"> <input type=\"hidden\" name=\"encrypted\" value=\"-----BEGIN PKCS7-----MIIHPwYJKoZIhvcNAQcEoIIHMDCCBywCAQExggEwMIIBLAIBADCBlDCBjjELMAkGA1UEBhMCVVMxCzAJBgNVBAgTAkNBMRYwFAYDVQQHEw1Nb3VudGFpbiBWaWV3MRQwEgYDVQQKEwtQYXlQYWwgSW5jLjETMBEGA1UECxQKbGl2ZV9jZXJ0czERMA8GA1UEAxQIbGl2ZV9hcGkxHDAaBgkqhkiG9w0BCQEWDXJlQHBheXBhbC5jb20CAQAwDQYJKoZIhvcNAQEBBQAEgYBJ5bzizbS5ZFrLsndq0LxZrZR7dBRUtMdOEz7uYNNaUPCipbKX1AnQfVs8h5q/gXYi2+f2/T8gqpEoEzcje+44iNCHWVnHgl3HA/Q/85y/ofQiEQmHwO4dkLjZnPTPZXX+8C8LtRq2J+SnZ1VIxLXnNujak8Rtmf+NPpKy5MjDuDELMAkGBSsOAwIaBQAwgbwGCSqGSIb3DQEHATAUBggqhkiG9w0DBwQI07W9B5PmBFWAg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lldzEUMBIGA1UEChMLUGF5UGFsIEluYy4xEzARBgNVBAsUCmxpdmVfY2VydHMxETAPBgNVBAMUCGxpdmVfYXBpMRwwGgYJKoZIhvcNAQkBFg1yZUBwYXlwYWwuY29tggEAMAwGA1UdEwQFMAMBAf8wDQYJKoZIhvcNAQEFBQADgYEAgV86VpqAWuXvX6Oro4qJ1tYVIT5DgWpE692Ag422H7yRIr/9j/iKG4Thia/Oflx4TdL+IFJBAyPK9v6zZNZtBgPBynXb048hsP16l2vi0k5Q2JKiPDsEfBhGI+HnxLXEaUWAcVfCsQFvd2A1sxRr67ip5y2wwBelUecP3AjJ+YcxggGaMIIBlgIBATCBlDCBjjELMAkGA1UEBhMCVVMxCzAJBgNVBAgTAkNBMRYwFAYDVQQHEw1Nb3VudGFpbiBWaWV3MRQwEgYDVQQKEwtQYXlQYWwgSW5jLjETMBEGA1UECxQKbGl2ZV9jZXJ0czERMA8GA1UEAxQIbGl2ZV9hcGkxHDAaBgkqhkiG9w0BCQEWDXJlQHBheXBhbC5jb20CAQAwCQYFKw4DAhoFAKBdMBgGCSqGSIb3DQEJAzELBgkqhkiG9w0BBwEwHAYJKoZIhvcNAQkFMQ8XDTA3MDYxMTIzMzYxMlowIwYJKoZIhvcNAQkEMRYEFJXWq1+HErMvntkeYWbPHvL1s7i5MA0GCSqGSIb3DQEBAQUABIGAAWsARggsRtRt0CrragM/XzzvmaxSKj6oe7uBFQEJQZ//RD5UWnoUh5H8kBqwKiZPdKFXbrO1eGuMhcv+1gKOzIn9XLF8h+7JgHyW8gjDRKoySlsWu5Zi6roNJwOUucnJIzSuBc5TmsE0iCcpTb1+4y258PpJQ/zmFomXF56ILg0=-----END PKCS7----- \"> </form> </div> </div> <br style=\"clear: both; font-size: 8px;\"> <div id=\"bottomleft\"> </div> <div id=\"bottomright\"> </div> </div> <div id=\"footer\">© Copyright 2007 Gevsta.com</div> </body> </html> )"; mysql_close($link); ?> line 82 is the third to last line it says )"; i would very much appreciate the help thx very much Quote Link to comment https://forums.phpfreaks.com/topic/55912-solved-unexpected-t_constant_encapsed_string/ Share on other sites More sharing options...
sasa Posted June 17, 2007 Share Posted June 17, 2007 error is in line <li><a href="">latest posts</a></li> Quote Link to comment https://forums.phpfreaks.com/topic/55912-solved-unexpected-t_constant_encapsed_string/#findComment-276170 Share on other sites More sharing options...
gevo12321 Posted June 17, 2007 Author Share Posted June 17, 2007 thx very much i hate making those kinds of mistakes Quote Link to comment https://forums.phpfreaks.com/topic/55912-solved-unexpected-t_constant_encapsed_string/#findComment-276173 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.