runnerjp Posted May 13, 2007 Share Posted May 13, 2007 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 Quote Link to comment https://forums.phpfreaks.com/topic/51174-solved-parse-error-syntax-error-unexpected-end-in-homerunnersepublic_htmlupload2/ Share on other sites More sharing options...
paul2463 Posted May 13, 2007 Share Posted May 13, 2007 you have no closing bracket for your if statement on line 22 Quote Link to comment https://forums.phpfreaks.com/topic/51174-solved-parse-error-syntax-error-unexpected-end-in-homerunnersepublic_htmlupload2/#findComment-251950 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.