Hi Kim. Welcome to
Bytes!
Let me just add some clarification here, for other readers benefits.
This code is not copy/pasted in and should not be expected to work as is. The spaces around the single-quotes will mean that no real data is ever matched. The actual code used is not exactly as posted here. This is almost certainly due to copying the data inaccurately. It probably works fine in real-life.
As a last point, I should mention that the CODE tags must be used when posting. This is not optional. As a new member I'm sure you're just getting to grips with things so I'll include some helpful pointers on this.
Tags are done as matching pairs where the opening one is surrounded by [...] and the closing one by [/...]. A set of buttons is available for ease of use in the
Standard Editor (Not the
Basic Editor). The one for the [ CODE ] tags has a hash (#) on it. You can choose which editor to use in your
profile options (Look near the bottom of the page).
Very last point, as I'm posting anyway, Line #2 is redundant.