Jump to content

Unexpected $end?


Gunnar J

Recommended Posts

<?phpif ($_POST['pokemon'] == "articuno" && $_POST['color'] == "red")  {  open_image ('http://i220.photobucket.com/albums/dd10/gunnar5397/Red-Articuno.png');  echo "http://i220.photobucket.com/albums/dd10/gunnar5397/Red-Articuno.png";  echo " If you would like to support this shop link this image to   [url="http://pokeplanet.exofire.net/onestoppokeshop.html""]http://pokeplanet.exofire.net/onestoppokeshop.html"[/url]  ;  }else   {  echo "You may only shoose one option ( e.g. Recolor or Fusion );  }?>

Parse error: syntax error, unexpected $end in /home/sproder/public_html/osps.php on line 13

Link to comment
Share on other sites

Could you please show THE WHOLE file? In particular, the part that contains "$end" in it. This is obviosly not all of osps.php. I mean, there aren't even 13 lines to begin with. There are only 12.edit: Hmm... I might have missed a line there :)

Link to comment
Share on other sites

echo "You may only shoose one option ( e.g. Recolor or Fusion );
No end quote in this echo.EDIT: Boen, there are exactly 13 lines, so it's in the final line that the interpreter freaks at the unterminated string.
Link to comment
Share on other sites

<?phpif ($_POST['pokemon'] == "articuno" && $_POST['color'] == "red")  {  ?><img src="http://i220.photobucket.com/albums/dd10/gunnar5397/Red-Articuno.png"><br><?php  echo "http://i220.photobucket.com/albums/dd10/gunnar5397/Red-Articuno.png";?><br><?php  echo " If you would like to support this shop link this image to   [url="http://pokeplanet.exofire.net/onestoppokeshop.html""]http://pokeplanet.exofire.net/onestoppokeshop.html"[/url]  ;  }ifelse ($_POST['body'] == "tentacool" && $_POST['colors'] == "caterpie")  ?><img src="http://i220.photobucket.com/albums/dd10/gunnar5397/dpmfa072.png"><br><?php  {  echo "http://i220.photobucket.com/albums/dd10/gunnar5397/dpmfa072.png";  echo "If you would like to support this shop, link the image above to   [url="http://pokeplanet.exofire.net/onestoppokeshop.html;"]http://pokeplanet.exofire.net/onestoppokeshop.html;[/url]  }else   {  echo "You may only shoose one option ( e.g. Recolor or Fusion )";  }?>

Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /home/sproder/public_html/osps.php on line 23I dont really see whats wrong with line 23, can someone help me?

Link to comment
Share on other sites

You know. You should really get a good editor... pretty much anyone with a syntax highlighting. It will save you the trouble with simple things like this.You're again missing a quote:

echo "If you would like to support this shop, link the image above to http://pokeplanet.exofire.net/onestoppokeshop.html";
<?phpif ($_POST['pokemon'] == "articuno" && $_POST['color'] == "red")  {  ?><img src="http://i220.photobucket.com/albums/dd10/gunnar5397/Red-Articuno.png"><br><?php  echo "http://i220.photobucket.com/albums/dd10/gunnar5397/Red-Articuno.png";?><br><?php  echo " If you would like to support this shop link this image to   [url="http://pokeplanet.exofire.net/onestoppokeshop.html""]http://pokeplanet.exofire.net/onestoppokeshop.html"[/url]  ;  }ifelse ($_POST['body'] == "tentacool" && $_POST['colors'] == "caterpie")  ?><img src="http://i220.photobucket.com/albums/dd10/gunnar5397/dpmfa072.png"><br><?php  {  echo "http://i220.photobucket.com/albums/dd10/gunnar5397/dpmfa072.png";  echo "If you would like to support this shop, link the image above to   [url="http://pokeplanet.exofire.net/onestoppokeshop.html;"]http://pokeplanet.exofire.net/onestoppokeshop.html;[/url]  }else   {  echo "You may only shoose one option ( e.g. Recolor or Fusion )";  }?>

Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /home/sproder/public_html/osps.php on line 23I dont really see whats wrong with line 23, can someone help me?

Link to comment
Share on other sites

This still has more php clauses than you really need, but it seems to work. Your code also had a misplaced curly brace

	<?php		if ($_POST['pokemon'] == "articuno" && $_POST['color'] == "red")		{	?>			<img src="http://i220.photobucket.com/albums/dd10/gunnar5397/Red-Articuno.png"><br>	<?php			echo "http://i220.photobucket.com/albums/dd10/gunnar5397/Red-Articuno.png";	?>		<br>	<?php			echo " If you would like to support this shop link this image to http://pokeplanet.exofire.net/onestoppokeshop.html";		} elseif ($_POST['body'] == "tentacool" && $_POST['colors'] == "caterpie")		{	?>			<img src="http://i220.photobucket.com/albums/dd10/gunnar5397/dpmfa072.png"><br>	<?php						echo "http://i220.photobucket.com/albums/dd10/gunnar5397/dpmfa072.png";			echo "If you would like to support this shop, link the image above to http://pokeplanet.exofire.net/onestoppokeshop.html";		}else{			echo "You may only shoose one option ( e.g. Recolor or Fusion )";		}	?>

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...