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

Add our star

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

Name*

 

Post*

 

Message*

 

Image*