Hi,
you could create a table like
parameter:
parameter_id (auto_increment, you only need it if you want to access parameters by id)
parameter (varchar)
value (varchar)
Taking your example it could contain:
1,'companyname','Hello World'
in the php code (shortened):
query_to_read_out_records
loop result_set {
$variable = $result['parameter'];
$value = $result['value'];
${$variable} = $value;
}
In this case ${$variable} = $value would be the same as:
$companyname = "Hello World";
and you can access it with $companyname later in the code.
Another way would be to create an array inside the loop and to use it later in the code:
$arrParams[$variable] = $value;
Thomas