Jump to content

[SOLVED] Parse error: syntax error, unexpected $end in /home/runnerse/public_html/upload2


Recommended Posts

i get the error

Parse error: syntax error, unexpected $end in /home/runnerse/public_html/upload2.php on line 29

 

                      <?
		$db = @mysql_select_db($db_name, $connection) or die("Couldn't select database.");
		$sql = "SELECT * FROM $tbl_images WHERE image_id = $auth[member_id] AND default_pic = \"yes\"";
		$result = @mysql_query($sql,$connection) or die("Couldn't execute query.");
		$PICSnum=mysql_num_rows($result);
		while ($row = mysql_fetch_array($result)) {
		$url = $row['url'];
		$image = $row['image'];
		}
		if(empty($url)) {$newurl="$imgdir";}else{$newurl="$userdir/$url";}
		if(empty($image))$image="pic.gif";
		$showimg="/$newurl/$image";
            ?>
                      <script type="text/javascript">
		function openpopup(popurl){
		var winpops=window.open(popurl,"","width=610px,height=625px,resizable")
		}
                        </script>
                      <p align="center">
             <a href="javascript:openpopup('showpic.php?img=<?echo $image ?>')"><IMG SRC="../../thumbs/phpThumb.php?src=<?echo $showimg ?>&w=150" border="0"></a>
             <?
             if($PICSnum > "0") {
             ?>
             <br>
                                 </p>
                      </td>
                </tr>
            </table>

 

how comes and how do i resolve it? 

 

ty :)

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.