identifying the page

I want to be able to write my own php code and put it in some of my WordPress pages. First I need to be able to identify wich page I am on. I know it is a simple thing but I just cant seem to figure it out. can I get the id for that page and use it in a if statement? How do I get the id without changing the permalink . I'm not used to WordPress I am used to writing my own code.

@peggyolympia
Hello there.
We require the URL for the blog in question when you post to this wordpress.com forum.
Why? Because some days 30% of those who post here are posting to the wrong forum. Here on our free blogs which are also free hosted by wordpress.com we cannot access the files containing the HTML and PHP.

I believe you are posting to the wrong forum. However, as you failed again to post the URL for the blog in question I cannot verify that. Please read the support documentation I linked to above. because If you are posting questions and answers to wordpres.ORG software question here in the wordpress.COM forum, doing sois bound to cause confusion.