10-10-2016, 09:35 AM
I have created a custom table in my database holding colour codes for distributors of my products.
I am trying to echo out the header and footer column using the following statement:
$db = DB::getInstance();
$customiseQ = $db->query("SELECT * FROM customise-distributor WHERE distributor = ". $parts[4] ."");
$customise = $customiseQ->first();
echo "Header Colour: ". $customise->header_colour ."";
Why is $customise->header_colour blank?
I am trying to echo out the header and footer column using the following statement:
$db = DB::getInstance();
$customiseQ = $db->query("SELECT * FROM customise-distributor WHERE distributor = ". $parts[4] ."");
$customise = $customiseQ->first();
echo "Header Colour: ". $customise->header_colour ."";
Why is $customise->header_colour blank?