ترك المبرمج لي البرنامج في PHP ولكن اريد اعمل تعديل على المحتوي يظهر اخطاء عند تنفيذ الصفحة عالسيرفر المحلي ولا اعرلم كيف اعمل مع الاعدادات وماذا علي ان افعل

هذا ملفdb-connect و cp-config والاكواد الخاصة بهما في الاسفل بالترتيب

,

<?php

include_once('cp_config.php'); // As functions.php is not included

logMessage("db_connect.php");

$mysqli = new mysqli(HOST, USER, PASSWORD, DATABASE);

// Reset messages

$messages_welcome = 0;

$messages_inbox = 0;

$messages_inbox_message = "";

$messages_error = 0;

$messages_error_message = "";

$messages_success = 0;

$messages_success_message = "";

?>

وايضا ملف cp-config

<?php

/**

  • These are the database login details

*/

define("HOST", "localhost"); // The host you want to connect to.

define("USER", "planetc2_admin"); // The database username.

define("PASSWORD", "mDn1Vo3?VeGB"); // The database password.

define("DATABASE", "planetc2_main"); // The database name.

define("CAN_REGISTER", "any");

define("DEFAULT_ROLE", "member");

define("SECURE", FALSE); // FOR DEVELOPMENT ONLY!!!!

// TESTING ONLY

$showLog = TRUE;

$logMsg = "";

$logLine = 0;

function logMessage($message)

{

global $logMsg, $logLine;



$logMsg .= "<tr style='height: 25px;'><td>" . ($logLine++) . "</td><td>" . $message . "</tr>";

}

function displayMessage()

{

global $showLog, $logMsg;



if ( $showLog )

{

    echo "<div style='display:block; clear: both; float: left; font-size: 12px; color: black;'>";

    echo "<table width='100%'>";

    echo "<th colspan='2'>LOG</th>";

    echo $logMsg . "</table></div>";

}

}

logMessage("cp_config.php");

$table_account = "account";

$table_accountattending = "accountattending";

$table_accountevents = "accountevents";

$table_accountfilter = "accountfilter";

$table_accountfollow = "accountfollow";

$table_accountfriends = "accountfriends";

$table_accountimages = "accountimages";

$table_accountnotification = "accountnotification";

$table_accountuser = "accountuser";

$table_category = "category";

$table_countries = "countries";

$table_discountcode = "discountcode";

$table_events = "events";

$table_eventsgallery = "eventsgallery";

$table_wordblacklist = "wordblacklist";

?>