Hello everyone,
I want to display an image on the webpage which was uploaded and stored in the database.
Here is my HTML codes
and here is my getImage.php codes
The image won't display :-(
Please anyone here can help me modify this codes.
I want to display an image on the webpage which was uploaded and stored in the database.
Here is my HTML codes
Code:
<img src="getImage.php?id={$student_id} <?php echo $data["LRCard"]?>;" width="175" height="200" />
Code:
<?php include 'Connect.php'; mysql_select_db("student"); $id = $_GET['id']; $student_id = htmlentities($_REQUEST['id'], ENT_QUOTES); $result = mysql_query("SELECT LRCard FROM student_information where student_id='$_GET[id]'"); $row = mysql_fetch_assoc($result); $row = mysql_fetch_object($result); mysql_close($link); header("Content-type: image/jpeg"); header("Content-type: image/gif"); echo $row['LRCard']; ?>
Please anyone here can help me modify this codes.
Comment