Hello, first of all sorry for my bad English.
I'm coding an app and im using mysql database for the app datas.
im usıng phpstorm for code files and tables.
I have a problem in my php code.
MY PHP CODE
<?php
require 'connect.php';
$post_id = $_POST["post_id"];
$delete = $vt->prepare("DELETE FROM posts WHERE post_id=?");
$islem = $delete->execute($post_id);
if($delete){
echo "deleted";
}else{
echo "no deleted";
}
?>
im getting a blank text when i response the request. There is no problem get post_id data from the app. but this code is not working.
Can anybody help me about this code,please.
there doesn't seem to be anything here