Welcome to Netsim! If this is your first time playing, we recommend you start from the first level below, and work your way forward.

Please note that this project is still in beta. If you find any bugs, you can report them to @errorinn or open an issue on Github.

query("SELECT * FROM category ORDER BY orderby"); while ($row = $res->fetchArray()) { echo "

".$row['name']."

\n"; $res2 = $db->query("SELECT * FROM level WHERE category_id = ".$row['id']." ORDER BY orderby"); while ($row2 = $res2->fetchArray()) { $complete = levelComplete($row2['id']); echo "
"; echo "\n"; echo "\t\n"; if ($complete) echo "\t\n"; echo "
\n"; echo "".$row2['name']."\n"; echo "
\n"; //echo "["; //echo levelComplete($row2['id']) ? "X" : " "; //echo "] ".$row2['name']."
\n"; } echo "
"; } function levelComplete($l) { global $db; $q = $db->query("SELECT * FROM solns WHERE user_id = ".$_SESSION['cs4g_user_id']." AND level_id = $l"); $row = $q->fetchArray(); return $row !== false && $row['completed'] == 1; } include 'footer.inc.php'; ?>