Database Table company_info
-----------------------------
| companyname | companytype |
-----------------------------
| Company One | Blah |
-----------------------------
| Company Two | Blah2 |
-----------------------------
Database Table invoice_template
-----------------------------
| Header | bgcolor |
-----------------------------
| $company | Red |
-----------------------------
| $company | Biege |
-----------------------------
PHP file common_include.php
$company = ... //FROM db table company_info field companyname
PHP file invoice.php
include('common_include.php');
$header = ... //FROM db table invoice_template field header
echo "Header is ". $header;
echo "<br/>Company is ". $company; //$company is defined in common_include.php
OUTPUT of invoice.php when company logged in is for eg.Company One
Header is $company
Company is Company One
Question: How do I get the $company in the output to be shown as Company one? i.e How do I get the output from MySQL DB to be treated as a variable?