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

前端 未结 3 1451
一整个雨季
一整个雨季 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:17

    You should just use $value instead of {$value}. You don't need another foreach loop inside the while loop.

    $output_string = '';
    $output_string .=  '';
    while($row = mysql_fetch_assoc($facebook))
    {
        $output_string .= '';
        $output_string .= '';
        $output_string .= '';
    }
    $output_string .= '
    '.$row['Your table column name here'].'
    ';

提交回复
热议问题