ok, the file attached.
Tracing down I believe here is a problem:
if (empty($id)){
$sqlstr = "INSERT INTO banner(link, gambar) VALUES('".$link."','".$gambar."')";
echo $sqlstr;
}else{
$sqlstr = "UPDATE banner SET link = '".$link."',gambar = '".$gambar."' WHERE id =".$id;
//other codes goes on....
}
But checking thru I found $gambar is an array containing:
'name' => string '956.png' (length=7)
'type' => string 'image/png' (length=9)
'tmp_name' => string '/tmp/phpvHQioh' (length=14)
'error' => int 0
'size' => int 627511
So Instead of using $gambar use either $gambar or whatever variable you want.
Sorry for being late, I have other things to do :)