楼主帮我看看怎么倒序输出txt数据库的内容?
https://3.suanban.cn/ 密码123
- <?php$info = file_get_contents("abc.txt");$info = rtrim($info,"@");if(strlen($info)>10){$column = explode("@@@",$info);foreach($column as $keys=>$values){$message = explode("%%",$values);?><tr><td align="center" bgcolor="#FFFFFF"></th><td align="center" bgcolor="#FFFFFF"><?php echo $message[0];?> </th></td><td align="center" bgcolor="#FFFFFF"><?php echo $message[1];?></th><td align="center" bgcolor="#FFFFFF"><?php echo $message[3];?></th><td align="center" bgcolor="#FFFFFF"><?php echo date("Y/m/d H:i",$message[4]);?></th><td align="center" bgcolor="#FFFFFF"><?php echo "<a href='javascript:del({$keys})'>删除</a>"; ?></th></tr><?php }}?>
复制代码 |