Hey guys...I have this code and it works for vb3, but I'm trying it on my vb4 board and getting issues. As soon as I try to submit the code in a new plugin, I get an internal server error. It's on the same server as my vb3 forum. I've isolated the code to generate the error when I use the word "select" in the query....
This will generate the error:
PHP Code:
$get_last_threads = $vbulletin->db->query_read("select * from pm");
This won't:
PHP Code:
$get_last_threads = $vbulletin->db->query_read("");
Please help!
Doing more research I've found this will not generate an error:
PHP Code:
$get_last_threads = $vbulletin->db->query_read("select date() as date");
So the word "from" seems to be the trigger....