0 || mysql_num_rows($rsent)>0) { die('There are '.mysql_num_rows($rverb).' verbs and '.mysql_num_rows($rsent).' sentences are connected to this theme. Please, switch off them before deleting this theme!'); } else { $r = mysql_query("DELETE FROM pvc_topics WHERE t_id=$t_id"); $r = mysql_query("DELETE FROM pvc_verb_topics WHERE topic_id=$t_id"); $r = mysql_query("DELETE FROM pvc_sentence_topic WHERE topic_id=$t_id"); } } ?>