php上载类上载错误
我想上传图片。我使用了这个代码,但是没有用。你能提供信息吗 我看了看,php上载类上载错误,php,Php,我想上传图片。我使用了这个代码,但是没有用。你能提供信息吗 我看了看,如果($upload->upload)然后它就不起作用了 ## Kategori ## function kategori() { $islem = $_GET['islem']; $post_kadi = $_POST['kadi']; $post_ksef = sef_link($post_kadi); $post_ksira
如果($upload->upload)
然后它就不起作用了
## Kategori ##
function kategori() {
$islem = $_GET['islem'];
$post_kadi = $_POST['kadi'];
$post_ksef = sef_link($post_kadi);
$post_ksira = trim($_POST['ksira']);
$post_altkat = $_POST['altkat'];
$post_durum = $_POST['durum'];
$post_keywords = $_POST['keywords'];
$upload = new upload($_FILES['image_field']);
$upload->file_auto_rename = true;
$upload->image_resize = false;
$upload->process('../../resimler');
$id = $_GET['id'];
// Gelen Sonuca Göre İşlem Yaptırıyoruz
if($islem== kaydet) {
# Sınıfımızı Başlatıyoruz.
# Dosya Yüklenmiş mi ?
if ($upload->uploaded)
{
if ($upload->processed)
{
$yaz = mysql_query("INSERT INTO kategori (name, sef_name, ust_id, durum, resim, keywords) values ('$post_kadi', '$post_ksef', '$post_altkat', '$post_durum', '$upload->file_dst_name', '$post_keywords') ");
$upload->clean();
if($yaz) {
Header("Location:../index.php?sayfa=kategori&durum=1");
}
else {
Header("Location:../index.php?sayfa=kategori&durum=2");
}
}
}
}
}
这个上传类在哪里?另外,请停止使用mysql,因为它已被弃用。此外,页面顶部的
error\u reporting(E\u ALL)
可能会给出答案。