php 输出连接语句到表

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了php 输出连接语句到表相关的知识,希望对你有一定的参考价值。

$result = 'Some Query'

print '<table><thead><tr><th>COlumn Title</th><th>Column Title</th></tr></thead>';
print '<tbody>';
// now loop through your query results and put stuff into the table
// of course you can monkey around with the table format and what goes in each cell
foreach($result as $row) {
    print '<tr><td>'.$row->column_name.'</td><td>'.$row->column_name.'</td></tr>';
}
print '</tbody></table>';

以上是关于php 输出连接语句到表的主要内容,如果未能解决你的问题,请参考以下文章