مشکل در اجرای Flash Page Flip Php Pro

من این رو از سایتش گرفتم و تنظمات رو اعمال کردم ولی با خطا مواجه شدم باید چیکار کنم
متن خطا اینه؟
Notice: Undefined variable: conn in C:\Apache\htdocs\FlipPage\db.php on line 20
در ضمن فایل db.php هم کدش اینه:
کد:
<?php
require_once("config.php");

class db_layer
{
	private $conn;
	function __construct() 
	{
	}

	public function getConnection()
	{
		if($this->conn == "")
		{
		   $conn = mysql_connect(HOST,USR,PSW);
		   mysql_select_db(DB);
		   mysql_query("SET NAMES 'utf8' COLLATE 'utf8_unicode_ci';"); 
		   $this->conn = $conn;
		}
	    return($conn);
	}
	
	public function execute_sql($arg_sql,&$arg_result,&$arg_error_msg)
	{
		$arg_sql = str_replace(';', ':', $arg_sql);
		$this->getConnection();
		if (!($arg_result = mysql_query($arg_sql)))
		{
			$arg_error_msg = "There was a problem With the Database".NL."Error : ".mysql_error().NL.NL;
			$arg_error_msg .= "SQL = [".$arg_sql."]";
			echo $arg_sql1= $arg_sql." ### ".mysql_error();
			return FALSE;
		}
		else 
		{
			return TRUE;
		} 
	}
}
?>
به نظرتون مشکل از کجاست؟
 

جدیدترین ارسال ها

بالا