Topic: Sub forum error

The error is:

Parse error: syntax error, unexpected T_STRING in /home/www/ on line 65

The error line is: 

// Print the categories and forums
$result = $db->query('SELECT AS cid, c.cat_name, AS fid, f.forum_name, f.forum_desc, f.redirect_url, f.moderators, f.num_topics, f.num_posts, f.last_post, f.last_post_id, f.last_poster, f.parent_forum_id FROM '.$db->prefix.'categories AS c INNER JOIN '.$db->prefix.'forums AS f ON LEFT JOIN '.$db->prefix.'forum_perms AS fp ON ( AND fp.group_id='.$pun_user['g_id'].') WHERE ( fp.read_forum IS NULL OR fp.read_forum=1) AND (f.parent_forum_id IS NULL OR f.parent_forum_id=0) ORDER BY c.disp_position,, f.disp_position', true) or error('Unable to fetch category/forum list', __FILE__, __LINE__, $db->error());

Plz help me!

PunBB, the FluxBB of tomorrow - today!

Re: Sub forum error


error('Unable to fetch category/forum list', __FILE__, __LINE__, $db->error());


die('Unable to fetch category/forum list', __FILE__, __LINE__, $db->error());

Re: Sub forum error

That has nothing to do with it wink

grudon: Could you paste some of the lines around that line? I think the error is a line or two above it

Free PunBB Hosting - lots of mods, easy to customize