require_once 'includes/header.php'; if($_POST['status'] == 'AddClient') { $chk = $con->query("SELECT * FROM our_client where title = '".$_POST['title']."'"); if(!($chk->num_rows)) { $our = photo_upload('client','our_client'); if($our['status'] == 1) { $con->query("INSERT INTO `our_client` (`id`, `timestamp`, `title`, `image`) VALUES (NULL, CURRENT_TIMESTAMP, '".$_POST['title']."', '".$our['file_name']."')"); echo ''; } else { echo '