我想将数据限制为只能在页面上发布 300 个字符。我怎样才能在“描述”下放置一个脚本?
谢谢
<?php $result = mysqli_query($con,"SELECT * FROM headlines ORDER BY serial DESC LIMIT 3"); while($row = mysqli_fetch_array($result)) { ?>
<img src="./img/<?php echo $row['picture']?>" height="284px" width="465px" /><br />
<div id="headlinetitle"><a href="./headlines.php?code=<?php echo $row['serial'];?>|productname=<?php echo $row['title']; ?>"><?php echo $row['title']; ?></a></div>
<?php echo $row['description']; ?>
<?php
}
?>