search engine with image
Posted: Sun Apr 05, 2009 7:01 am
Hi....i just hooked my client up with a search engine....it allows to search the table `jobkseekers` for job hunters....errytin works well except 1 tin....i want the result page to come along with an image when its displaying result......i created a 'cand_image.php' page nd it looks like this
<?php require_once('Connections/connJobsearch.php'); ?>
<?php
session_start();
header("Content-type: image/gif");
$cid = $_SESSION['cid'];
@$sql = "SELECT `image` FROM jobseekers WHERE `id` = '$cid'";
@$result = mysql_query($sql);
@$row_result = mysql_fetch_assoc($result);
$image = $row_result['image'];
echo $image;
?>
for instance when there are more than 1 result, i expect it t dislpay pictures for every user it returns but instead it returns only 1 particular image for every user it returns...i.e the user whose 'id' comes 1st...ANY HELP
<?php require_once('Connections/connJobsearch.php'); ?>
<?php
session_start();
header("Content-type: image/gif");
$cid = $_SESSION['cid'];
@$sql = "SELECT `image` FROM jobseekers WHERE `id` = '$cid'";
@$result = mysql_query($sql);
@$row_result = mysql_fetch_assoc($result);
$image = $row_result['image'];
echo $image;
?>
for instance when there are more than 1 result, i expect it t dislpay pictures for every user it returns but instead it returns only 1 particular image for every user it returns...i.e the user whose 'id' comes 1st...ANY HELP