In the postbit_* hooks you will most likely need to use the $this->registry->db variable or the $vbulletin->db variable as those hooks are executed within a class, if I remember correctly.
Thanks. But like I said I switched onto another hook that worked better. Thanks for the info though, might need to use those hooks some other time.
Quote:
Originally Posted by MoT3rror
Change your function to query_first then query_read.
Umm... why? Unless I'm mistaken query_first reads only the first line whereas query_read reads ALL lines (including the first).
Anyways, I solved the resource id thingy with fetch_array.