ok
Direktori : /home2/selectio/public_html/caliberembedded.com/admin/api/ |
Current File : /home2/selectio/public_html/caliberembedded.com/admin/api/api.php |
<?php include"../config/config.php"; if($_POST['type']=="update_as_viewed_profile"){ try{ $statement = $pdo->prepare("INSERT INTO `tbl_view_profile`(`member_id`,`view_member_id`) VALUES (?,?)"); $result=$statement->execute(array($_POST['member_id'],$_POST['view_member_id'])); if($result==1) { $message='Success..'; $error='1'; } else { $message='Failed..'; $error='0'; } //$datas[] = array('message' => $message, 'error' => $error); echo $message; }catch(exception $e){ echo $e; } } ?>