我想做一个;讯息;类似于.CSS中的window和.php,并从mysql获取。每行一个新的块

我想做一个;讯息;类似于.CSS中的window和.php,并从mysql获取。每行一个新的块,php,html,css,mysql,fetch,Php,Html,Css,Mysql,Fetch,我想做一个“消息”像窗口,我会添加一个图片,它是如何-我不希望这样。我希望它更像是在iPhone上——每条信息周围都有绿色的方框 $sql="SELECT ordene FROM ordene"; if ($result=mysqli_query($con,$sql)) { // Fetch one and one row while ($row=mysqli_fetch_row($result)) { //printf("%s<p><span>",$row[0]

我想做一个“消息”像窗口,我会添加一个图片,它是如何-我不希望这样。我希望它更像是在iPhone上——每条信息周围都有绿色的方框

$sql="SELECT ordene FROM ordene";

if ($result=mysqli_query($con,$sql))
{
// Fetch one and one row
while ($row=mysqli_fetch_row($result))
{



//printf("%s<p><span>",$row[0],"</span><p>");
//printf ("%s",$row[0]);
  echo "<br>";
echo $row[0];


}
 // Free result set
 mysqli_free_result($result);
$sql=“从ordene中选择ordene”;
if($result=mysqli_查询($con,$sql))
{
//取一行和一行
while($row=mysqli\u fetch\u row($result))
{
//printf(“%s”,$row[0],“”);
//printf(“%s”,$row[0]);
回声“
”; echo$行[0]; } //自由结果集 mysqli_免费_结果($result);

我制作了一个快速模板供您使用

用php代码输出的消息替换
,不要忘记,您需要为元素提供相应的类,以便对其进行样式设置。如果我的答案有帮助,请将其标记为答案