php am I expecting something thats impossible? : <p>I am a beginner so please be patient with me. I have a website and a database and im looking to achieve the following...</p>

<p>A user loads example.com, whilst loading the html page an embedded php script grabs some data from an sql db, prints the data into the page and the user gets shown an sql value within the loaded html page. How is this possible?</p>

<p>I have searched all over the net but keep getting examples that echo onto a php page, not an html page. Thanks in advance.</p>
