Re: Plugin aint working, what am I doing wrong
Already tried that (forgot to put it here too):
$pforum_id = $bbdb->get_var("SELECT pforum_id FROM $bbdb->portal");
But it doesn’t get the 1 out of the db. The query is good cause in phpMA it does return the 1. I get an error using this:
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ORDER BY topic_time DESC LIMIT 0,10' at line 1]
SELECT * FROM bb_topics WHERE forum_id = ORDER BY topic_time DESC LIMIT 0,10
As you can see, the 1 isn’t pulled/ used (WHERE forum_id = ?)