2005-09-28, 09:25 PM
Hey everyone!
I am working on a new mod/plugin for PR2 and I would like some help with part of it. I need a basic mysql script that pulls data off an existing table and shows it on a page. I think I have seen something like this before in some mods, and I think this is what I need:
Am I at all on the right track, and could someone please point me in the right direction if not? Thanks in advance!
I am working on a new mod/plugin for PR2 and I would like some help with part of it. I need a basic mysql script that pulls data off an existing table and shows it on a page. I think I have seen something like this before in some mods, and I think this is what I need:
Quote:$query = $db->query("SELECT * FROM ".TABLE_PREFIX."threads WHERE tid='".intval($mybb->input['tid'])."' AND visible='1'");
Am I at all on the right track, and could someone please point me in the right direction if not? Thanks in advance!