'0' AND id<>'" . $previous_id . "' order by rand_id limit 1"); $myrow = mysql_fetch_array($result); echo ""; echo ""; echo ""; echo ""; echo "
"; echo $myrow['emnebody']; echo "
\n"; $previous_id = $myrow['id']; } // her er det forskellige foldere med billeder der skifter / hentet fra inc.productfolder.php if ($random_id) { $select_random_level_1 = "SELECT level_1 FROM " . $editorlighttable . " WHERE id='" . $random_id . "'"; $result_random_level_1 = @mysql_query($select_random_level_1,$db); $myrow_random_level_1 = @mysql_fetch_array($result_random_level_1); $random_level_1 = $myrow_random_level_1['level_1']; $result = mysql_query("SELECT id, emnebody, id*0+rand() as rand_id FROM " . $editorlighttable . " WHERE level_1='" . $random_level_1 . "' AND level_2>'0' AND id<>'" . $previous_id . "' order by rand_id limit 1",$db); $myrow = mysql_fetch_array($result); echo ""; echo ""; echo ""; echo ""; echo "
"; echo $myrow['emnebody']; echo "
\n"; $previous_id = $myrow['id']; } echo ""; ?>