もう少しお手伝いが必要です。この問題を知っているが、私は不足しているパラメータを見つける傾ける...これが問題ライン警告:mysqli_query()は少なくとも2つのパラメータを必要とし、1はD: wamp64 www magento に1544行目の functions.phpを指定します。
**`$result_template = mysqli_query($select_template) or die(mysql_error());`**
である私は1つのパラメータが欠落している知っているが、私はwhichoneを知りません?あなたは私を助けることができますか?おかげ
これは多分便利なコードの一部です....
/*function to display the active template*/
function displayTemplate(){
$tableprefix = "";
global $tableprefix,$_SESSION;
$template_array = array();
$select_template = "SELECT vtop_filename,vleft_filename,vbottom_filename,vimages_folder,vcss_name,vtemplate_name
FROM ".$tableprefix."template_master WHERE vactive_status = 'Y'";
1579---->>>> $result_template = mysqli_query($select_template) or die(mysql_error());
$template_row = mysql_fetch_assoc($result_template);
array_push($template_array,$template_row['vtop_filename'],$template_row['vleft_filename'],$template_row['vbottom_filename'],$template_row['vimages_folder'],$template_row['vcss_name'],$template_row['vtemplate_name']);
return $template_array;
}
あなたはコネクションを渡しましたmysqli関数への変数の変更 –
申し訳ありません@Kinshuk私は理解できません – Murat
あなたはConnectionオブジェクトに欠けていました....ここでは、クイック構文ref '$ res = mysqli_query($ con_object、$ query); ' – RohitS