cleanman/2 pointed out what is currently causing the parse error, and to help you spot such errors in the future, remember to properly indent your code (djjjozsi's example is a negative demonstration because of missing [php][/php] bbcode tags).
As djjjozsi pointed out, you should use functions. In particular, it appears that you want to get the compaign, and based on this include the appropriate file. You actually have another error in your code at that part right now because $campaign is an integer variable but you are treating it as if it were an array.
However, avoid the use of declared global variables as in djjjozsi's example and use function parameters instead. The function should do one thing and do it well, and in this case that could mean just returning a number, or just returning the filename, or perhaps just including the appropriate file.
Incidentally, instead of a SELECT SQL statement with mysql_num_rows() (which you are redundantly using twice per SQL statement), use a SELECT COUNT() SQL statement (possibly with a LIMIT 1 clause) and then just retrieve and use the result directly.