MyBB Community Forums

Full Version: Fetch fid, tid, pid?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Guys is this the best way to fetch FID, TID and PID???

$query = $db->simple_select("posts", "*", "test`=".intval($post->data['pid']));

$query = $db->simple_select("forums", "*", "test`=".intval($mybb->input['fid']));

$query = $db->simple_select("threads", "*", "test`=".intval($post->data['tid']));
Instead of using a * for the second parameter, only put the names of the field you need. For example in the one for PID the second parameter should be "pid". Your database will appreciate doing this.
Very appreciate your support @dragonexpert