MSV FM

dot.antimicrobial@66.96.161.157: ~ $
Path : /hermes/bosweb/b1705/trinix19.ipage.com/Backup/Anees/DoctorReview-n/
File Upload :
Current < : /hermes/bosweb/b1705/trinix19.ipage.com/Backup/Anees/DoctorReview-n/home-save.php

<?php
		if(isset($_POST['addBtn'])){
		
			$name = $_POST['dname'];
			$location = $_POST['dlocation'];
			$spec = $_POST['spec'];
			$symp = $_POST['symp'];
			$uid=1;
			include('dbconnect.php');
			$res = mysql_query("insert into doctordetails values('','$uid','$name','$location','1')");
			$lst = mysql_insert_id();
			
			if($lst>1){
				echo"<script>alert('Doctor has been added');</script>";
			}
			foreach($spec as $specdb)
			{
				mysql_query("Insert into doctspecialist values ('','$lst','$specdb')");
			}
			foreach($symp as $sympdb)
			{
				mysql_query("Insert into doctsymptom values ('','$lst','$sympdb')");
			}
			header('Location:home.php');
			
			
		}
	
	?>