I am agree with vanguard, how you call a php function from a client side mouse over detecting from a server side script.
But you can do it by using a javascript to detect mouseover at client side and let that javascript to call a php function.It is possible to do so.