PDA

View Full Version : CSS style sheet with PHP?



ntomsheck
13 Oct 2010, 12:04 AM
Hey guys, I'm new to this forum, but not entirely new to web design. I've had a few pages up in the past, but nothing really for making money. I've taken on a larger project now...

Some quick information:
I have a website who's main feature is a search bar. Clients will enter their query into the search bar, then be directed to a new page with various database elements being displayed accordingly. Obviously, I need this page to be dynamic, as it has to display multiple different results each time.

I'd like to retain the color scheme and borders static on all pages, while having the information in the center be dynamic. Would I do an HTML page, with a CSS style sheet, and PHP for the dynamic information? Or would an entirely PHP page be best, with a style sheet. I'd like to keep as much as possible HTML for SEO

tivy
13 Oct 2010, 03:48 PM
You would do a standard HTML page with CSS, but in the middle, smack the PHP code your using to display the dynamic content. For example



<html>

<head>
<!-- head stuff -->
</head>

<body>
<!-- header -->
<!-- menu -->
<!-- left column -->
<div class="main-content">
<?php
// php code to output the dynamic content here
?>
</div>
<!-- footer -->
</body>
</html>