Creating a table with mysql, php and ajax (with jquery)

前端 未结 3 1445
一整个雨季
一整个雨季 2021-01-06 04:41

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

3条回答
  •  庸人自扰
    2021-01-06 05:03

    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.

提交回复
热议问题