摘要: <?php //产生5位0~9的随机数 function getRand($start=0,$end=9,$limit=5){ $rand_arr=range($start,$end); 产生0~9的数组 shuffle($rand_arr);//随机排列函数打乱数组顺序 return array_ 阅读全文
posted @ 2018-01-13 16:59 JDbeyond 阅读(439) 评论(0) 推荐(0) 编辑
摘要: <?php $link = mysqli_connect("localhost","root","root","dbname"); //连接数据库 $sql = "select field from table limit 1"; $ressql = mysqli_query($link,$sql) 阅读全文
posted @ 2018-01-13 16:37 JDbeyond 阅读(5139) 评论(0) 推荐(0) 编辑