First, a very basic example:
PHP Code:
<?php
if (isset($_GET['Brand'])) { include('brandpage.php'; } //if there is a brand, include that script
else { include('main.php'; } //else, include the main (index) script
?>
Now, that will allow you to output two pages in one. You could also, rather than using includes, just put the entire page of html there, and surround it with the brackets {}.
That might be a bit harder to organize.
Anyway, all you need to do to check that is use if statements and search the database.
if (isset($_GET['Brand'])) { do_mysql_query, etc. }
You'll first want to decide if the get variables are valid for finding a product. If so, then just search the database for them. If not, output the main page.
If you need help with php/mysql, use this tutorial:
http://php-mysql-tutorial.com
Bookmarks