ThisisthefollowingpagethatyoucanseeintheimageswasworkingbeautywithoutanyproblemandnowIhavebeenuploadingitandsimplythePHPcodedoesnotappear.I'vebeenreadingandsometimestheysaytheycanbemistakes.inaPHPcodecheckerIputmycodethereanditdidnotreturnanyproblem.Idonotunderstandwhathappened?sorrybutI'mnewtothis!
Ileavethecodethatisintheimage:
<?phpinclude('config.php');$sql="SELECT * FROM books WHERE category='computing'";
$r=mysqli_query($conn, $sql);
?>
<html>
<head>
</head>
<body>
<table cellpadding="2" cellspacing="2" border="0">
<tr>
<th>ISBN</th>
<th> Title </th>
<th> Author's name</th>
<th> edition</th>
<th> year</th>
<th> category</th>
<th> publisher</th>
<th> quantity-in-stock</th>
<th> price</th>
</tr>
<?php while($books =mysqli_fetch_object($r)){?>
<tr>
<td> <?php echo $books->ISBN; ?></td>
<td> <?php echo $books->Title; ?></td>
<td> <?php echo $books->Authorsname; ?></td>
<td> <?php echo $books->edition;?></td>
<td> <?php echo $books->year; ?></td>
<td> <?php echo $books->category; ?></td>
<td> <?php echo $books->publisher; ?></td>
<td> <?php echo $books->quantityinstock; ?></td>
<td> <?php echo $books->price; ?></td>
<?= echo '<img src="data:image/jpeg;base64,'.base64_decode( $books->Image ).'"/>'; ?>
<td> <a href="shoppingcart.php?ISBN=<?php echo $books->ISBN; ?>">Order Now</a></td>
</tr>
<?php } ?>
</table>
</body>
</html>
Thank you in advance