首页文件中调用团队信息?图片如何格式化?

创建时间:2019-07-24 09:08发布者:少年点击数:56
我这样调用出来的图片没有格式化,怎么格式化图片??

function get_team_list() {

/* 获取团队列表 */
$sql = "SELECT * FROM " . $GLOBALS['dou']->table('team') . " ORDER BY sort ASC, id ASC";


$query = $GLOBALS['dou']->query($sql);
while ($row = $GLOBALS['dou']->fetch_array($query)) {

$team_list[] = array (
"id" => $row['id'],
"name" => $row['name'],
"team_style" => $row['team_style'],
"class" => $row['class'],
"image" => $row['image'],
"description" => $row['description'],

);

}
return $team_list;
}
回答 我也遇到这个问题(0)