Check out “Getting field values” first, because that’s most likely what you want to do.
If you are a theme author or more advanced developer you probably want to check out how to add fields using php instead of using the gui: “Adding fields”.
And if you’re really cool then you want to add your own field types using the Extension API.