Files names slightly changing when using date variable

I have created a script that completes a backup process, this process follows: Set file destination variable NOW=$(date +%Y-%m-%d-T%H-%M) DEST=”/home/tomd/backup/backup”$NOW”.sql” Export database with MySQLDump Zip the file gzip $DEST My problem here is that when we set $NOW it is not setting for the entire session, the time gets updated every time it is called…

Details

How do I close the UL of sibling LI Elements?

I’m trying to close UL elements of sibling LI elements to avoid having two open at the same time. HTML: <li class=”dropdown-submenu top-submenu”> <a tabindex=”-1″ class=”setting” href=”#”>Settings <span class=”caret”></span></a> <ul class=”dropdown-menu top-menu checkbox-menu”> <li class=”dropdown-submenu top-submenu”> <a class=”setting” href=”#”>Toolbars<span class=”caret”></span></a> <ul class=”dropdown-menu top-menu”> <li data-toggle=”tooltip” data-placement=”bottom” title=”Check make the RIGHT Toolbar double width – for…

Details

How to fix foreign key error when running migration

I don’t know why it’s still don’t work and show this: Illuminate\Database\QueryException : SQLSTATE[HY000]: General error: 1005 Can’t create table db_rocnikovka.books (errno: 150 “Foreign key constraint is incorrectly formed”) (SQL: alter table books add constraint books_doba_foreign foreign key (doba) references druh_knihies (id_druhu)) at C:\xampp\htdocs\Rocnikovka\vendor\laravel\framework\src\Illuminate\Database\Connection.php:665 Exception trace: 1 PDOException::(“SQLSTATE[HY000]: General error: 1005 Can’t create > table…

Details