The actual value of $Brand is... well, nothing.
You can't just treat a query like an array. You need to turn it into one:
PHP Code:
$plqq = mysql_query("SELECT Photo, PartNo, ItemName, MSRP, Descr, Brand, DateCreated FROM aeproducts $where");
$plq = mysql_fetch_array($plqq);
$Brand = $plq['Brand'];
$message = array(
"<p class='msgbanner1'><strong>ERROR. Please try again another time.</strong></p>",
"<p class='msgbanner1'><strong>Sorry, I cannot find that information. Please check your typing and try again.</strong></p>",
"<p class='msgbanner2'>You searched for <strong>$text</strong></p>",
"<p class='msgbanner2'><strong>Please try again without using punctuation.</strong></p>",
"<p class='msgbanner2'>30 random items shown. Please specify your part(s) by using the Search box above.</p>",
"<p class='msgbanner2'>Too many results returned. No thumbnails shown.</p>"
);
echo <<<HTML
<table id="main">
<tr>
<td colspan="2" id="header">
<!-- **** HEADER IMAGE ******* -->
HTML;
include_once ('../includes_php/header.'.$Brand.'.php');
?>
Off Topic:
By the way, table-based designs have been out the window for years. Using <div> tags with CSS styling is the best, and most powerful, way of building HTML designs
Bookmarks