$b) { $rules = @file_get_contents($b.'/rules.txt'); echo "Processing board $b...\n"; if ($rules && !empty(trim($rules))) { $query = prepare('INSERT INTO ``pages``(name, title, type, board, content) VALUES("rules", "Rules", "html", :board, :content)'); $query->bindValue(':board', $b); $query->bindValue(':content', $rules); $query->execute(); } }