php读取mysql,符合条件的数据有多条时,想只取最后一条数据,代码怎么写? 50
$query="select*fromuserlistwhereusername='$lune'";$result=mysqli_query($link,$query);...
$query = "select * from userlist where username = '$lune'";
$result = mysqli_query($link, $query);
$row = mysqli_fetch_array($result);
echo $row['gangwei']; 展开
$result = mysqli_query($link, $query);
$row = mysqli_fetch_array($result);
echo $row['gangwei']; 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询