I am getting this error and can't see why, please help! It looks like I have them all where they are suppose to be.
Parse error: syntax error, unexpected '{' in /home/content/a/r/t/art2294/html/ifElse5.php on line 121
if ($field == "all")
{
$artist = mysql_query("SELECT * FROM artist WHERE fullName LIKE '%$search%' ORDER BY lastName");
$image = mysql_query("SELECT image.imgid, image.title, image.artid, image.keywords, image.dt, artist.artid, artist.fullName FROM image LEFT JOIN artist ON artist.artid = image.artid WHERE image.title LIKE '%$search%' ORDER BY title") or die(mysql_error());
$num_artist=mysql_num_rows($artist);
$num_image=mysql_num_rows($image);
//artist
if ($num_artist != "0")
{
echo "<h1><b>Names of Artist(s)</b> <br><br>";
$count = count(0);
//grab all the content
while ($r=mysql_fetch_array($artist))
{
$artid=$r["artid"];
$fullName=$r["fullName"];
$nationality=$r["nationality"];
$dob=$r["dob"];
$dod=$r["dod"];
echo $count++;
echo ". <a href='artist.php?artid=$r[artid]'>".$fullName."</a>, ".$dob." - ".$dod.", ".$nationality." <br>";
}
}
else ($num_image != "0")
{ [COLOR="Red"]// THIS IS LINE 121[/COLOR]
$count = count(0);
//grab all the content
while ($r=mysql_fetch_array($image))
{
$title=$r["title"];
$imgid=$r["imgid"];
$dt=$r["dt"];
$artid=$r["artid"];
$fullName=$r["fullName"];
//display the row
echo $count++;
echo ". <a href='image.php?imgid=$r[imgid]'><img src=\"image/$imgid\" border=0 ></a>, <i>".$title."</i>, ".$dt." by <a href='artist.php?artid=$r[artid]'>".$fullName."</a><br>";
}
}
}