Imagine running a SQL SELECT statement and merging the results directly into an HTML table marked up to your specifications.
想象一下,运行一个SQL select语句,并将结果直接合并到一个符合自己的规范的HTML表格中。
One thing to notice here is that I had to use a format statement to specify that the output file should be HTML.
有必要指出,这里必须使用格式语句规定输出文件是 HTML 格式。
In the following example, we have moved the formerly raw HTML into a function of its own named print_html , which is called as the only executed statement within the PHP program.
在下面的例子中,我将前面的原始html移入它自己命名的print_html函数中,这个函数是php程序中惟一调用的执行语句。
应用推荐