Mysql query and php echo
<p>Ok i have this code</p>

<pre><code>&lt;?php
include_once ('database_connection.php');

if(isset($_GET['keyword'])){
$keyword =  trim($_GET['keyword']) ;
$keyword = mysqli_real_escape_string($dbc, $keyword);

$query = "select name,title,description,link,type from items where name like '%$keyword%' or title like '%$keyword%' or description like '%$keyword%' or link like     '%$keyword%' or type like '%$keyword%'";

//echo $query;
$result = mysqli_query($dbc,$query);
if($result){
if(mysqli_affected_rows($dbc)!=0){
$ff = "";
      while($row = mysqli_fetch_array($result,MYSQLI_ASSOC)){
    $ff .= "&lt;div id='itemdiv2' class='gradient'&gt;";
    $ff .= "&lt;div id='imgc'&gt;".'&lt;img src="Images/media/'.$row['name'].'" /&gt;'."&lt;br/&gt;";
$ff .= "&lt;a href='#?w=700' id='".$row['id']."' rel='popup' class='poplight'&gt;View full&lt;a/&gt;&lt;/div&gt;";
$ff .= "&lt;div id='pdiva'&gt;"."&lt;p id='ittitle'&gt;".$row['title']."&lt;/p&gt;";
    $ff .= "&lt;p id='itdes'&gt;".$row['description']."&lt;/p&gt;";
    $ff .= "&lt;a href='".$row['link']."'&gt;".$row['link']."&lt;/a&gt;";
    $ff .= "&lt;/div&gt;"."&lt;/div&gt;";
    echo $ff;
}
}else {
    echo 'No Results for :"'.$_GET['keyword'].'"';
}

}
}else {
echo 'Parameter Missing';
}




?&gt;
</code></pre>

<p>and i got this error "Notice: Undefined index: id in C:\xampp\htdocs\madeinusa\search.php on line 20" and this is the line 20: "$ff .= "View full";"
and i dont know what seems the problem is. i think there is actually problem with the query or in displaying the records scheme. hope someone could help, im open on any suggestions and recommendations. thanks in advance.</p>
