Hello,
I'm having a problem with my code. It seem to only echo out the picture name from my database and not the picture.
This is my code
search.php
$result = mysql_query("SELECT * FROM all WHERE (`title` LIKE '%".$query."%') OR (`add_type` LIKE '%".$query."%')") or die(mysql_error());
if(mysql_num_rows($result) > 0)
{
while($results = mysql_fetch_array($result))
{
$photo = $results['image'];
echo " ".$results['image']."<a href='http://www.mysite.org/br/s.php?id=$id'><img src='/cate/upload/ $photo' width='100%' height='100%'></a>";
}
}
This is where i save my picture -> /cate/upload/
I think i have to leave the $result code, the only thing i need is to transform the $result['image']; to echo out the picture, not the name of the picture.