#!/usr/local/bin/php query("select * from node_access where node_bookmark='yes'"); while ($set->next()) { $creator=$set->getString('user_id'); $node=$set->getString('node_id'); $category=$set->getString('bookmark_category'); if (!$category) $category=$creator; $help=$db->query("select * from neurons where central='$category' and peripheral='$node'"); if (!$help->getNumRows()) { $q="insert into neurons set central='$category',peripheral='$node',synapse_creator='$creator',link='bookmark',synapse_created=NOW()"; echo $q."\n"; $db->query($q); } unset($help); } ?>