in reply to SQL Session ID troubles (was: an easy one)
BTW, you probably want to say
($sessionid) = $logquery->fetchrow_array() [download]