警告:mysqli_fetch_array()

时间:2019-05-29 09:42:27

标签: php mysqli

警告:mysqli_fetch_array()期望参数1为mysqli_result,布尔值为

我在这里停留了很长时间,没有找到答案

在侧边栏中使用此


<?php

        $customer_session= $_SESSION['customer_email'];
        $get_customer= "select * from customers where customer_email='$customer_session";
        $run_customer= mysqli_query($con, $get_customer);
        $row_customer= mysqli_fetch_array($run_customer);
        $customer_image= $row_customer['customer_image'];
        $customer_name= $row_customer['customer_name'];

        if(!isset($SESSION['customer_email'])){
        }else{

            echo"
                <center>

                <img src='customer_images/$customer_image' class='img-responsive'>

                </center>

                <br/>

                <h3 class='panel-title' align='center'>
                    Name: $customer_name
                </h3>

            ";

        }

0 个答案:

没有答案