本文整理匯總了PHP中Artist::del_prop方法的典型用法代碼示例。如果您正苦於以下問題:PHP Artist::del_prop方法的具體用法?PHP Artist::del_prop怎麽用?PHP Artist::del_prop使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Artist
的用法示例。
在下文中一共展示了Artist::del_prop方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: saveResizeImage
$_SESSION['insert_artist'] = 'insert';
} else {
$_SESSION['insert_artist'] = 'insert_faild';
}
} else {
$action = 'updated';
$arrData['id'] = $_POST['id'];
$arrData['coverimg'] = 'artistcover_' . $_POST['id'] . '.jpg';
$arrData['picture'] = 'artistpic_' . $_POST['id'] . '.jpg';
if ($_FILES['artist_cover']['name'] != '') {
$logo = 'artistcover_' . $arrData['id'] . '.jpg';
saveResizeImage($_FILES['artist_cover'], $arrData['id'], 'artistcover');
}
if ($_FILES['artist_picture']['name'] != '') {
$picture = 'artistpic_' . $arrData['id'] . '.jpg';
saveResizeImage($_FILES['artist_picture'], $arrData['id'], 'artistpic');
}
if ($_FILES['artist_picture1']['name'] != '') {
$picture = 'artistpic1_' . $arrData['id'] . '.jpg';
saveResizeImage($_FILES['artist_picture1'], $arrData['id'], 'artistpic1');
}
if ($_FILES['artist_picture2']['name'] != '') {
$picture = 'artistpic2_' . $arrData['id'] . '.jpg';
saveResizeImage($_FILES['artist_picture2'], $arrData['id'], 'artistpic2');
}
$artist->del_prop($arrData['id'], 'artist');
$artist->add_prop($artist_prop, $arrData['id'], 'artist');
$update = $artist->edit($arrData);
}
}
header('Location: artist.php?act=' . $action);