Re: Plugin aint working, what am I doing wrong
Eeuuhh hey I am a noob, why doesn’t it make sense? $pforum_id is the variable and pforum_id the field in the table bb_portal (they are named the same).
The $pforum_id = 1 and is used in the last query. But the 1 can be different and is stored in de bb_portal table under pforum_id.
So I want to pull that 1 first from the db (thought using ‘$pforum_id = $bbdb->get_var(“SELECT pforum_id FROM $bbdb->portal”);’ would work) and then use that result in the last query…
Well that was the idea, but it aint working, how to fix it?