这是我正在使用的代码:
$sql = "SELECT Student_ID
FROM course_student
WHERE Course_ID='$CourseID'";
$Lresult=$DBInstance->CallDB($sql);
print_r($Lresult);
我得到的结果是:
Array (
[0] => Array ( [Student_ID] => S10812345 [0] => S10812345 )
[1] => Array ( [Student_ID] => S1081299 [0] => S1081299 )
[2] => Array ( [Student_ID] => S1089922 [0] => S1089922 )
)
这是我想要的结果:
Array ( [0] => S10812345 [1] => S1081299 [2] => S1089922 )