This is the website : http://gravityhub.xyz/y/search/index.php
Try to search : "Item"
It will show the Name, Price, and Image Name. I want it to show the image not the image name.
This is the mysql, I use print $output to show the results
if(isset($_POST['search'])) {
$searchq = $_POST['search'];
$query = mysql_query("SELECT * FROM uni_slider WHERE slider_name LIKE '%$searchq%' OR slider_image LIKE '%$searchq%' OR slider_price LIKE '%$searchq%'") or die("Could not search");
$count = mysql_num_rows($query);
if($count == 0){
$output = 'There was no such results';
}else{
while($row = mysql_fetch_array($query)) {
$name = $row['slider_name'];
$image = $row['slider_image'];
$price = $row['slider_price'];
$output .= '<div class="output"> '.$image.' <br/> '.$name.' <br/> '.$price.' <font color="#2ecc71">$</font><br/></div>';
}
}
}
I tried to use <img src>
but it doesnt work..