conn); while($rec=mysql_fetch_array($fire)) { $maxid1=$rec["max(id)"]; } return ($maxid1+1); } function dataAluminiStu($id,$name,$varSelPublicDis) { $fileName=$_FILES["fileUp"]["name"]; $fileTmpName=$_FILES["fileUp"]["tmp_name"]; echo $varSelPublicDis.'=========='; $newPath=$fileName; $qry=("insert into download (id ,name,image_url,thumbimg_url) values ('$id','$name',$newPath','$newPath')"); mysql_query($qry,$this->conn) ; if(file_exists("../images/download/")) { move_uploaded_file($fileTmpName,"../images/download/".$fileName); //this function is used to copy one place to another place. } else { mkdir("../images/download/"); move_uploaded_file($fileTmpName,"../images/download/".$fileName); // this function is used to deleted file parmanantly.. } } } ?>

Add Images To Main Slider.

 
 
setconnection(); $tableObj->selectdb(); $nextId=$tableObj->getId1(); ?>
setconnection(); $tableObj->selectdb(); $tableObj->dataAluminiStu($_REQUEST["txtid1"],$_REQUEST["txtnm1"],$_REQUEST["selPublicDes"]); echo "
Proccess has been successfull...
"; ?>
 

Name*

 

Image*

 

Category*

 
fil