For my new project i want the so modern approach of not needing to reload a page on every database request. :) I want the script to query the database and create a table wit
Instead of
$output_string .= '{$value} ';
try
$output_string .= "{$value} ";
i.e. replace the single quotes with double quotes.
See the doc here, which says:
When a string is specified in double quotes ... variables are parsed within it.
and
variables ... will not be expanded when they occur in single quoted strings.