# \[PHP\] Unexpected $ Error

**URL:** <https://forum.kirupa.com/t/php-unexpected-error/220206>\
**Category:** programming\
**Created:** [March 23, 2007, 4:42pm UTC](https://forum.kirupa.com/t/php-unexpected-error/220206 "2007-03-23T16:42:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![NeoDreamer](https://avatars.discourse-cdn.com/v4/letter/n/ccd318/32.png) [@NeoDreamer](https://forum.kirupa.com/u/NeoDreamer)\
**Post date:** [March 23, 2007, 4:42pm UTC](https://forum.kirupa.com/t/php-unexpected-error/220206/1 "2007-03-23T16:42:31Z")

</div>

> [@Error](#):
>
> Parse error: parse error, unexpected $ in /homepages/38/d167792529/htdocs/shop.php on line 37

Line 37 is the last line ( ?\> ). I see no $ there…

```php

<?php
	function secCode()
	{
		$sql = "SELECT title, name, web FROM shop ORDER BY id DESC";
		$rs = @mysql_query($sql) or die("Could not query. <a href=\"index.php?sec=shop\">Try again</a>.");	
		$count = 1;
					
		while($row = mysql_fetch_array($rs))
		{	
			$title = $row["title"];
			$name = $row["name"];
			$web = "http://www." . $row["web"];
			$thumbnail	= "shop/" . $title . "_thumbnail.gif";
			$alt = $title . " by " . $name;
	
			echo("
				<table border=\"0\" cellspacing=\"1\" cellpadding=\"5\" background=\"$PLATFORM\">
					<tr bgcolor=\"$PLATFORM\">
						<td>
							<img src=\"$thumbnail\" alt=\"$alt\">
						</td>
					</tr>
					<tr bgcolor=\"$PLATFORM\">
						<td align=\"center\">
							<a href=\"$web\" title=\"designer's website\">$name</a>
						</td>
					</tr>
				</table>
			");
			
			// line break after each 3 entries
			if($count % 3 == 0)
				echo("</ br>");
				
			$count++;
	}
?>

```
