我想知道我的代码有什么问题我无法看到来自DB的图像。我在网上寻找答案,他们似乎是我尝试使用PDO的所有旧代码,但由于某种原因,我不能让它工作,有人可以帮我找出我的代码有什么问题吗?
include('configur.php');
$tbl_name="shirt_table";
$email=$_SESSION['email'];
$query="SELECT * FROM $tbl_name WHERE email='$email'";
$result=mysqli_query($link, $query);
// If successfully queried
if($result){
// Count how many row has this passkey
$count=mysqli_num_rows($result);
// if found this passkey in our database, retrieve data from table "first_table"
if($count==1){
$rows=mysqli_fetch_array($result);
$images3=$rows['images3'];
}}
<div style=" float: left;" ><a href="http://torcdesign.com/shirtimgs/'.$row["images3"].'"></a><img src="http://torcdesign.com/shirtimgs/<?php echo $images3 ?>" width="490" height="500" alt="no image found"/></div>