Set just gives the variable a value. (Usually written as variable = value), while "export" makes the variiable available for other shell proguams to use later. (Actually, "set" has options for exporting the value, but let's not go there.)
There are several good online shell scripting tutorials you could look at. Some are in the "tutorials" section of these forums.