Code:
if (strpos($html_contents, 'Died</th>') !== false) {
echo "<a href = \"http://en.wikipedia.org/wiki/$person_name\">Yep. They Are Dead.</a><br>";
} else if (strpos($html_contents, 'appearance</th>') !== false) {
echo "<a href = \"http://en.wikipedia.org/wiki/$person_name\">Yep. They Are Dead.</a><br>";
} else {
echo "<a href = \"http://en.wikipedia.org/wiki/$person_name\">Nope. Still alive.</a><br>";
}
Don't think that algorithm will do the job. Although nice try. You should try making some kind of discography finder; you put in an artist or band, and displays all the song and video releases. You should also try posting in on code review before posting it on here