“欢迎客人”和用户的电子邮件应显示在标题中,但似乎我的代码中有一些内容。而且在整个我的PHP代码中都有来自数据库的'customer_email',错误一直在推动我查看页面。错误是
以下是customer_email的代码:
<?php
$user = $_SESSION['customer_email'];
$get_img = "select * from customers where customer_email='$user'";
$run_img = mysqli_query($con, $get_img);
$row_img = mysqli_fetch_array($run_img);
$c_img = $row_img['customer_img'];
$c_name = $row_img['customer_name'];
?>
以下是欢迎客人的代码:
<?php
if(isset($_SESSION['customer_name'])){
echo "<b style='color:yellow;'>Welcome:</b>" . $_SESSION['customer_name'] ;
}
else{
echo "";
}
?>