function query(&$irc, &$data) { global $session; $time=time(); $txt=irc_color_decode(addslashes(htmlspecialchars(array_to_string($data->messageex))),1); $txt=replace_smileys($txt); $rand=rand(); mysql_query("INSERT INTO `rqueue` (`id`,`type`,`from`,`to`,`data`,`session`,`time`) VALUES (NULL,'QUERY','".$data->nick."','".$nick."','$txt','$session','$time')"); }