Question: I have a small database with several hundred resources of varying types (medical, education and research, for example). Each resource will need to be identified by its region. Some of the resources serve multiple regions. I need to be able to define each resource by its type, and it's region. 

Since one region will have many resources, and one resource can serve many counties I figure I should have a junction table between them, right? 

My question is, should I have a junction / linking table for each resource type? Should I have a table of education\_resources, regions and link them with a junction table education\_regions? And do the same thing for the rest of the categories?

Answer: 
try to print on the browser, if you see some extra space then remove.

if the extra is still on the csv file when you download, then this extra space is coming from any of your include file. 

when you start writing your code try not to leave some space on the top/bottom of the code.
Use `ob_clean();` before writing CSV to remove White spaces.