with image support
This commit is contained in:
		| @@ -4,7 +4,12 @@ try { | ||||
|   $user = $db->real_escape_string($_REQUEST['user']); | ||||
|   $msg = $db->real_escape_string($_REQUEST['msg']); | ||||
|   $q = $db->query("insert into message (user, msg) values ('$user', '$msg');"); | ||||
|   echo json_encode(true); | ||||
|   if ($q) { | ||||
|     echo json_encode(true); | ||||
|   } else { | ||||
|     error_log("Error storing message: ".$db->error); | ||||
|     echo json_encode(false); | ||||
|   } | ||||
| } catch (Exception $e) { | ||||
|   echo json_encode(false); | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user