| Current Path : /var/www/html/rkala/data/ |
| Current File : /var/www/html/rkala/data/fetch_image.php |
<?php
header("content-type:image/jpeg");
include 'credential.php';
mysql_connect($host, $user, $pass);
mysql_select_db('proto_type');
$userId = $_GET['eid'];
$query = "SELECT image FROM answer WHERE a_id='$userId'";
$result = mysql_query($query) or die(mysql_error());
$photo = mysql_fetch_array($result);
echo $photo['image'];
?>