English 中文(简体)
PHP的表格相同
原标题:Are tables the same for PHP

我不理解,现在,我的理解是,html的表格将与购买力平价合作,或两者不同。 我理解如何以超文本形式与安保部一起编制表格,但我不敢肯定价格指数。 我是PHP的新鲜事,这可能对你们大多数人来说是一个棘手的问题。 我只是想有人能够解释,因此,我对此有了更好的了解。

我仍然不知道如何在一张桌上展示一些东西。

最佳回答

浏览器只有html>。

<代码>PHP是一种程序语言,由服务器解释,用于生成<代码>html<>>>>。

也就是说,没有<代码>PHP表格。 只是说是正常的。 探讨使用购买力平价创建“动力”表的插图。 现在可以想象,<代码>$animals从数据库中提取......

Example:
my-table-generator.php

<?php
$animals = array("dog", "cat", "duck");
?>

<table>
   <tr>
   <?php
       foreach($animals as $animal) 
       {
          echo "<td>".$animal."</td>";
       }
   ?>
   </tr>
</table>
问题回答

PHP helps you send dynamic HTML to the browser. The HTML always remain the same regardless of the backend language you are using. So just use regular HTML and use PHP to render it. For instance if you want to display multiple rows of some data coming from the DB, you will utilize a PHP loop to print out the <tr><td></td></tr>

example:

for($i = 0 ; $i < 10 ; $i++){
   echo "<tr><td>$i</td></tr>";
}

也许不是一个很好的例子,但希望它能够传递信息。





相关问题
Brute-force/DoS prevention in PHP [closed]

I am trying to write a script to prevent brute-force login attempts in a website I m building. The logic goes something like this: User sends login information. Check if username and password is ...

please can anyone check this while loop and if condition

<?php $con=mysql_connect("localhost","mts","mts"); if(!con) { die( unable to connect . mysql_error()); } mysql_select_db("mts",$con); /* date_default_timezone_set ("Asia/Calcutta"); $date = ...

定值美元

如何确认来自正确来源的数字。

Generating a drop down list of timezones with PHP

Most sites need some way to show the dates on the site in the users preferred timezone. Below are two lists that I found and then one method using the built in PHP DateTime class in PHP 5. I need ...

Text as watermarking in PHP

I want to create text as a watermark for an image. the water mark should have the following properties front: Impact color: white opacity: 31% Font style: regular, bold Bevel and Emboss size: 30 ...

How does php cast boolean variables?

How does php cast boolean variables? I was trying to save a boolean value to an array: $result["Users"]["is_login"] = true; but when I use debug the is_login value is blank. and when I do ...

热门标签