<?php if ($result["title"]) { echo(xml_entities($result["title"])); } else { echo("http://gemerit.com/" . $result["hash"]); } ?> http://gemerit.com/