sql_query($sql); $row = $db->sql_fetchrow($result); if($row['topic_title']){ echo('1'); } else { echo('0'); } exit; } ?>