query arr

query_arr

1 PHP --- MySQL[ | ]

function query_arr($qry) {
	$result = mysql_query($qry);
	if($result === false)
		die("Query: [[ $qry ]] → Error: ".mysql_error());
	$arr = array();
	while($row = mysql_fetch_array($result, MYSQL_NUM)) {
		$arr[] = $row[0];
	}
	return $arr;
}

2 같이 보기[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}