Help changing content on the page using both php and javascript
<p>So I am trying to have a dynamic tabs kind of thing using both php and javascript. To make it much easier to understand, remember the two choices on facebook (Recent news and most recent) or something like that, when you click on one of them it just changes the content that you see in the middle without updating the page. i know how to delete the content in a div for example, but after deleting the content in the div (innerHTML = "") I want to populate it with the option chosen from the database.</p>

<p>So let's say I have an option (all) and an option (only this)
The default is all so when I run the page, I will just get all. However, if I click on only this, it will clear the div "my header" and will replace the content with the latest content from the database (database) and display it.</p>

<p>For that I need both php and javascript, is there a sample or an easy way to do this before i start digging around.</p>

<p>((Sorry if is not clear but the facebook example should be clear enough))</p>
