hello please help me out regarding this function
function delete($serviceid)
{
$result = $this->query=("delete from service where service_id='$serviceid'");
$exe=$this->executeNonQuery();
if ($exe){
return $success = "Record deleted successfully.";
} else {
return $error = "Unable to process at this time.";
}
}
$exe is always 1 even if the record is not deleted as may b its because of , it only check that query is executed or not , how can i check if the record is deleted then show success message
executeNonQueryseems to be used in database adapters for a few Microsoft technologies, FWIW. I found one horrible example PHP database adapter in Google. I hope that's not the one being used here.