const WithLoader = (Component, get, block, type) => () => {
const dispatch = useDispatch();
React.useEffect(() => {
dispatch(get);
},[dispatch]);
const page = useSelector(state => state[block][type]);
return (page == null || page == undefined || page.length == 0)
? <Loader />
: <Component content={ page } />
};
error_reporting(E_ALL | E_STRICT);
ini_set('display_errors', TRUE);
ini_set('display_startup_errors', TRUE);
$q = "INSERT INTO 'Users' ('Users','Date','Mail','Url','Text') VALUES ('$name','$date','$mail','$url','$text') ";
echo $q;
$success = $mysqli -> query ("$q");