Prase Error unexpected $end

Hello and Happy New Year to all :),

Im a newbie in this forum and in the field of PHP seeking your kind help in a situation below :

[php]

Artist <?php $artistid=$_GET[artistid]; $conn=mysql_connect("173.201.217.83","****","*****"); if (!$conn) {die('Could not connect: ' . mysql_error()); } mysql_select_db("shangrilaarts1", $conn); $sql="select * from artist_master WHERE artist_id='".$artistid."'"; $rs=mysql_query($sql); ?>
<?php while($row=mysql_fetch_array($rs)) { ?>
 
<? echo $row['artist_desc']; ?>
 
<?php mysql_close($conn); ?> [/php]

Im getting an Error which says :

Parse error: syntax error, unexpected $end in D:\Hosting\4181856\html\shangrilaarts\artistinfo.php on line 108

Line 108 is actually the last line of the code
If anyone could assist me on this matter I would really appreciate that soul. Thanks in advance and looking forward to hanging out with you guys.

-toxicoded

You need to close the bracket on your while loop. That should sort your problem.

ohh god how could i miss that…thanks a lot man it did solve the problem
wew I feel pathetic haha thanks again man

Sponsor our Newsletter | Privacy Policy | Terms of Service