![]() |
شو الخطأ بذه الكلاس ؟ السلام عليكم ابغي اعرف شو الخطأ بهذا الكلاس .. رمز PHP: class MySQLDatabase { private $connection; function __construct() { $this->open_connection(); } public function open_connection() { $this->connection = @mysql_connect($config['dbhost'], $config['dbuser'], $config['dbpass']); if (!$this->connection) { die("Database connection failed: " . mysql_error()); } else { $db_select = @mysql_select_db($config['dbname'], $this->connection); if (!$db_select) { die("Database selection failed: " . mysql_error()); } } } $db = new MySQLDatabase(); if(isset($db)){ echo "true"; }else{ echo "false "; } echo ""; يعطيني هالخطأ Parse error: syntax error, unexpected ';', expecting T_FUNCTION in C:\AppServ\www\class\db.class.php on line 34 ومرة بالسطر 14 |
الساعة الآن 02:20 AM |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.5.2 TranZ By
Almuhajir