Hello guys this is a very simplified version of my table:

I will like to make four mysql querys to this table. All of them will have to count the total visits where id_user is equal to some particular value and type different from click. One query have to count the visits today, the other in this week, the month and the total visits. Im not very expert on MySQL, i can certainly solve this using PHP but i prefer to put the load on my sql server. Thanks for your help!
Give these a go. I don’t know what your table is called so I have referrered to it as
trafficTable: