第一种:数组
$allbrand = array();
while ($testingrow = mysqli_fetch_array ($testingquery)) {
$allbrand[] = $testingrow[2];
}
第二种:字符串
$allbrand = '';
while ($testingrow = mysqli_fetch_array ($testingquery)) {
$allbrand .= $testingrow[2]."";
}
请采纳,谢谢
第一行少了引号,应该改为:
$str="where ....'王舒婷'";
$str= "where task_is_on = '个人已完' and task_flag = '普通' and task_do_name = '王舒婷' ";