Show us your code then. Can't help with code we can't see.

There are a thousand tutorials on google using search for general information.