Jump to content

Recommended Posts

I'm new to PHP and I wanted to convert a website I have made to PHP.  It seemed really simple but I got this error, "Parse error: parse error, unexpected '<' in d:\webs\pluspointtaken.com\html\index.php on line 41."  I know what the "<" is from, it is the start of an HTML tag. Why is this happening and how can i fix it.

 

The code is attached.

 

[attachment deleted by admin]

Link to comment
https://forums.phpfreaks.com/topic/82490-solved-unexpected/
Share on other sites

<html>
<head>
<title>Point Taken</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

<link rel="stylesheet" type="text/css"
href="style.css" />

<style type="text/css">
<!--
body {
background-color: #000000;
}
-->
</style>
</head>
<body>
<table width="766" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><table width="766" border="0" cellspacing="0" cellpadding="0">
      <tr valign="top">
<td width="436"><img src="images/band.jpg" width="436" height="218" alt="Short description of the image"></td>
    <td width="153"><img src="images/m0.jpg" width="154" height="80" alt="Short description of the image"><a href="index-1.html"><img src="images/m1a.gif" width="154" height="21" border="0" alt="Short description of the image"></a><a href="index-1.html"></a><a href="index-2.html"><img src="images/m3.jpg" width="154" height="21" border="0" alt="Short description of the image"></a>

<a href="index-3.html"><img src="images/m5.jpg" width="154" height="21" border="0" alt="Short description of the image"></a>


<a href="index-4.html"><img src="images/m6.jpg" width="154" height="75" border="0" alt="Short description of the image"></a>	</td>

        <td width="176"><img src="images/menur.jpg" width="176" height="218" alt="Short description of the image"></td>
      </tr>
    </table>
    </td>
  </tr>
</table>

<?php
$action = $_GET[action];

if ($action = "about") {
?>
  <td height="317" valign="top" background="images/bg_main.gif"><table width="389" height="219" border="0" cellpadding="0" cellspacing="0" style="margin-left:39px; margin-top:7px ">
      <tr>
        <td height="219" valign="top"><table width="389" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td height="183" valign="top"><table width="398" height="311" border="0" cellpadding="0" cellspacing="0">
                  <tr valign="top">
                    <td width="397" align="center" valign="middle"><div align="center"><span class="style2">WHO ARE WE? </span></div></td>
                  </tr>
                  <tr valign="top">
                    <th>                      <div align="left"><span class="style7">Point Taken started way back in December 2005. The band was formed by  Emiel and Neel. They needed a guitarist and that was found in the likes  of Jolyon.He was kicked out after a bit. They then found the gifted and  talented Jake who not only is a wizard on the guitar but is a great  help in writing the songs and also does vocals. Jake and Emiel have  made a fantastic partnership in writing all their songs. This backed up  by the brilliant drummings of Neel makes an amazing team of youths who  i cant possibly see not being famous. Through 2006, they did not have  many gigs. They played a few at some schools, and also some radical  parties which were mental. At the beginning of 2007 however everything  is starting to look a lot brighter. They have just managed to get  themselves an agent in the form of Aden Hilmi. He has already started  to get involved quickly and the e.p. will be recorded soon and gigs  will be coming thick and fast...and oh one thing i forgot to mention is  all three of them are only 13, with the potential to be as good as  Blink 182, they all have remarkable talent for there age, and there  going to make it big! Heres to a happy 2007! Let it be better then 2006.</span><br>                        
                    </div></th>
                  </tr>
                  
              </table></td>
            </tr>
            
        </table></td>
      </tr>
    </table></td>
  </tr>
  <?php
}

elseif ($action == "audio") {
?>
        <tr>
        <td width="24"> </td>
        <td width="395" valign="top">

<p id="player2"><a href="http://www.macromedia.com/go/getflashplayer">Get the Flash Player</a> to see this player.</p>
<script type="text/javascript">
var s2 = new SWFObject("mp3player.swf", "playlist", "240", "135", "7");
s2.addVariable("file","playlist.xml");
s2.addVariable("backcolor","0x00000");
s2.addVariable("frontcolor","0xEECCDD");
s2.addVariable("lightcolor","0x000033");
s2.addVariable("displayheight","0");
s2.addVariable("width","240");
s2.addVariable("height","135");
s2.write("player2");
</script>

          </p>
</td>
      </tr>
    	</table>
</td>
  </tr>
  <?php
} 

elseif ($action == "photo") {
?>
        </tr>
    </table></td>
  </tr>
  <tr>
    <td height="317" valign="top" background="images/bg_main.gif"><table width="389" height="219" border="0" cellpadding="0" cellspacing="0" style="margin-left:39px; margin-top:7px ">
      <tr>
        <td height="219" valign="top"><table width="389" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td height="183" valign="top"><div><embed src="http://widget-67.slide.com/widgets/slideticker.swf" width="389" height="250" autostart="false" align="middle" style="width:389px;height:250px" type="application/x-shockwave-flash" quality="high" scale="noscale" salign="l" wmode="transparent" flashvars="cy=lt&il=1&channel=360287970199719783&site=widget-67.slide.com" name="flashticker"></embed>
              <div style="width:389px;text-align:left;"><a href="http://www.slide.com/pivot?cy=lt&ad=0&id=360287970199719783&map=1" target="_blank"><img src="http://widget-67.slide.com/p1/360287970199719783/lt_t040_v000_a000_f00/images/xslide1.gif" border="0" ismap="ismap" /></a> <a href="http://www.slide.com/pivot?cy=lt&ad=0&id=360287970199719783&map=2" target="_blank"><img src="http://widget-67.slide.com/p2/360287970199719783/lt_t040_v000_a000_f00/images/xslide2.gif" border="0" ismap="ismap" /></a></div></div> </td>
            </tr>
            
        </table></td>
      </tr>
    </table></td>
  </tr>
  <?php
} 

elseif ($action == "tour") {
?>
  <tr>
        <td height="219" valign="top"><table width="389" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td height="183" valign="top"><table width="398" height="311" border="0" cellpadding="0" cellspacing="0">
                  <tr valign="top">
                    <td width="397" align="center" valign="middle"><div align="center"><span class="style2">Tour Dates </span></div></td>
                  </tr>
                  <tr valign="top">
                    <th>                      <div align="left">
                      <p><span class="style7">None at the moment but we hope there will be some soon  </span></p>
                      <p> </p>
                      <p> </p>
                      <p> </p>
                      <p> </p>
                      <p> </p>
                      <p> </p>
                      <p><br>                        
                        </p>
                    </div></th>
                  </tr>
                  
              </table></td>
            </tr>
            
        </table></td>
      </tr>
    </table></td>
  </tr>
  <?php
} 

?>
</body>
</html>

 

There :)

Link to comment
https://forums.phpfreaks.com/topic/82490-solved-unexpected/#findComment-419333
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.