I am unable to view the images from my mySQL table and dont knnow why . it shows that they have been uploaded but i still cant access them . btw file is the column name for the actual image content
<!doctype html>
<html>
<head>
</head>
<body>
<form method="post" enctype="mutipart/form-data">
<input type="submit" name="submit" value="view"></input>
</form>
<?php
if(isset($_POST['submit']))
echo "submitted";
else echo "not submitted";
$con =mysqli_connect("127.0.0.1","root","","demo");
$qery ="SELECT * FROM image WHERE ID='13';
$result =mysqli_query($con,$qery);
$data =mysqli_fetch_array($result);
$numrows =mysqli_num_rows($result);
$curimage = $data['file'];
echo $curimage;
?>
</body>
</html>
Aucun commentaire:
Enregistrer un commentaire