PHP5不支持HTML混编吗?各自错误啊,求教~~~
<?php//引用文件include("conn.php");?><table width = "500" align = "center" bgcolor = #add3ef> <?php $sql = "SELECT * FORM message"; $query = mysql_query($sql); whiel($row = mysql_fetch_array($query)) { ?> <tr bgcolor = #eff3ff> <td>标题:<?php = $row[title]?> 用户:<?php = $row[user]?></td> </tr> <tr bgcolor = #ffffff> <td>内容:<?php = $row[content]?></td> </tr> <?php } ?></table>
<?php//引用文件include("conn.php");?><table width = "500" align = "center" bgcolor = #add3ef> <?php $sql = "SELECT * FORM message"; $query = mysql_query($sql); while($row = mysql_fetch_array($query)) { ?> <tr bgcolor = #eff3ff> <td>标题:<?php echo $row['title']?> 用户:<?php echo $row['user']?></td> </tr> <tr bgcolor = #ffffff> <td>内容:<?php echo $row['content']?></td> </tr> <?php } ?></table>