Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

check if delete query was successful laravel

try {
    DB::table('user_')->where('column',$something)->delete();
    $queryStatus = "Successful";
} catch(Exception $e) {
    $queryStatus = "Not success";
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #check #delete #query #successful #laravel
ADD COMMENT
Topic
Name
5+6 =