@TuncerMehmet; şu şekilde deneyebilir misin?
if((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "form1"))
{
include_once("class.upload.php");
$upload = new upload($_FILES["resim"]);
if($upload->uploaded)
{
$upload->file_auto_rename = true;
$upload->allowed = array("image/*");
$upload->file_new_name_body = uniqid(true);
$upload->image_resize = true;
$upload->image_x = 1280;
$upload->image_y = 716;
$upload->process("../images/");
$adi = $upload->file_dst_name;
}
$insertSQL = sprintf(
"INSERT INTO slider (resim, resimyazi, resimlink, resimbutonyazi, resimbutonsekli) VALUES (%s, %s, %s, %s, %s)",
GetSQLValueString($adi, "text"),
GetSQLValueString(isset($_POST["resimyazi"]) ? $_POST["resimyazi"] : "NULL", "text"),
GetSQLValueString(isset($_POST["resimlink"]) ? $_POST["resimlink"] : "NULL", "text"),
GetSQLValueString(isset($_POST["resimbutonyazi"]) ? $_POST["resimbutonyazi"] : "NULL", "text"),
GetSQLValueString(isset($_POST["resimbutonsekli"]) ? $_POST["resimbutonsekli"] : "NULL", "text")
);
GetSQLValueString($adi, "text"), Bu satırda hata veriyor hocam " Column 'resim' cannot be null " diyor