Hi I'm trying to create some statistics, for example I want to have the number of the search done today, I wrote this query. select count(time) from search_history where year(time) = year(curdate()) AND month(time) = month(curdate()) AND DAY(time) = day(curdate()); My problem is... if the user do the login in the opac and then do a search the table search_history is updated but if the user do a search without login nothing is written in the database. Any idea? -- View this message in context: http://koha.1045719.n5.nabble.com/Statistic-with-Koha-tp4622398p4622398.html Sent from the Koha - Discuss mailing list archive at Nabble.com.
Le 22/07/2011 11:27, schwitzd a écrit :
Hi
I'm trying to create some statistics, for example I want to have the number of the search done today, I wrote this query. select count(time) from search_history where year(time) = year(curdate()) AND month(time) = month(curdate()) AND DAY(time) = day(curdate());
My problem is... if the user do the login in the opac and then do a search the table search_history is updated but if the user do a search without login nothing is written in the database.
Any idea?
grep search zebra.logs |wc-l should do the trick. -- Henri-Damien LAURENT
there isn't a way to do with sql query? but is right that the search did without a log in into the opac are not stored into the database? -- View this message in context: http://koha.1045719.n5.nabble.com/Statistic-with-Koha-tp4622398p4622504.html Sent from the Koha - Discuss mailing list archive at Nabble.com.
participants (2)
-
LAURENT Henri-Damien -
schwitzd