使用print_r
波纹管简单地打印Array ()
.
为什么这不起作用?
$conn = oci_connect("wwbms_admin", "wwbms_admin", "PDBQA");
$sql = "SELECT COUNTRY_ID, DESCRIPTION FROM COUNTRY";
$query_country = oci_parse($conn, $sql);
$list = array();
$result = oci_execute($query_country, OCI_DEFAULT);
while(($row = oci_fetch_assoc($query_country))) {
$items[$row['DESCRIPTION']] = $row['DESCRIPTION'];
}
print_r($list);
oci_close($conn);
任何帮助都会很棒,谢谢。