Useful Git commands and options. git branch -a show current branch and show all branches, -а key means all git branch newbranch — create new branch with name called»newbranch» git branch -f master / — move HEAD of «master» branch to commit with hash or to the HEAD of branch called , if there is […]
JSON datatype and MariaDB
In one of my projects I had MySQL database which had a table with a field of JSON datatype, where I stored form data. All was good until I moved the project from my local server to production. During the database import I’ve got an error of table creation. It was looking like that: […]
PHP Parse error: syntax error, unexpected ‘?’ in …
A widespread error: «PHP Parse error: syntax error, unexpected ‘?’ in …» It’s meaning is clear from error text — PHP parser run into syntax error in script. Of course first of all you’ll need to check the script or it’s mentioned part if it really has misspelling — unclosed or excess bracket, period whatever. […]