Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSS

mysqli check if delete was successful

$sql = "DELETE FROM art WHERE id='5'"; 
if($db->query($sql)=== TRUE) {
	    $message = "good"; // all worked good.
}else{
	    $message = "bad"; // didnt work because something was wrong
}
 
PREVIOUS NEXT
Tagged: #mysqli #check #delete #successful
ADD COMMENT
Topic
Name
7+8 =