How can I unstage my files again after making a local commit?

git reset –soft HEAD~1 should do what you want. After this, you’ll have the first changes in the index (visible with git diff –cached), and your newest changes not staged. git status will then look like this: You can then do git add foo.java and commit both changes at once.

How to fix the session_register() deprecated issue?

Don’t use it. The description says: Register one or more global variables with the current session. Two things that came to my mind: Using global variables is not good anyway, find a way to avoid them. You can still set variables with $_SESSION[‘var’] = “value”. See also the warnings from the manual: If you want your script … Read more

SQL Parentheses use in an OR clause

Take a look at the Operator Precedence in SQL Server (You’ve not specified that, but I’d imagine it’s the same for all RDBMS). What this means is that ANDs (without parenthesis) are evaluated before1 bind more tightly than ORs. So in your specific case, without the parenthesis, the conditions are: employe.service=service.code_serv AND employe.nom LIKE ‘A%’ OR employe.nom LIKE ‘B%’ … Read more