فنكشن خطأ, لماذا؟
		
		
				
					
					
				
				
		
			
				
					السلام عليكم
حاول أن أنفذ هذا الفنكشن  لكنه يعطي غلط في السطر
$result = $db->sql_query($sql);
-------------------------------------------------
فهل من مساعدة يا اخوان
وبارك الله فيكم
<?
define('IN_PHPBB', true);
$phpbb_root_path = './phpbb/';
$phpEx = substr(strrchr(__FILE__, '.'), 1);
include($phpbb_root_path . 'common.' . $phpEx);
function cccc($BBBB)
{
	$sql = "SELECT * FROM phpbb_topics WHERE topic_startsida='$BBBB' ";
	$result = $db->sql_query($sql);
	while ($row = $db->sql_fetchrow($result))
	{	
	$today =$row[date];	
	}
return $BBBB;
} 
cccc($BBBB=left);
echo $today;
?>
				
			 
			
		 
			
				
			
				
			
			
				
__________________
لا خير في كاتـــــــــ العلم ــــــــم.