如何访问我的 mysql_query 的特定部分?我正在尝试使用下面的代码执行此操作,但无济于事。非常感激任何的帮助!
$rs = mysql_query("SELECT id,type FROM stuff WHERE stuffID = '$stuffID'");
echo $rs['type']; <------ tried here
// Add the rows to the array
while($obj = mysql_fetch_object($rs)) {
$arr[] = $obj;
}
echo $arr['type']; <----- also tried here