PHP classes for database handling upon PDO
The cflash class will be loaded using psr-4 protocols installing with packagist., (*2)
There are two functions in the class:, (*3)
insert($message = '') Insert puts an entry into $_SESSION['CFlashMessage'] and that entry is forwarded as the parameter $message., (*4)
printMessage() This prints a div encapsuling the message previously put in $_SESSION['CFlashMessage'] and will after displaying it empty $_SESSION['CFlashMessage'] so that it doesn't show it again., (*5)
I have also added a css-file that you can load into your previous css-file making the flash message look a little bit cleaner., (*6)