I have this code below. I want to return whether if the row exist on my database or not. Thanks!
$con = $this->con();
$sql = "SELECT `id`, `user`, `data_name`, `title`, `price`, `category`, `brand`, `description`, `tags`, `date_added` FROM `mktdata` WHERE user='$this->user' AND data_name='$this->formName'";
$data = $con->prepare($sql);
$data->execute();
$result = $data->fetchAll();
return $result;