Forum Moderators: open
What could be the reason?
if (content_type($section_id,$fetched_section)==0)//type=text
{
$sqlcontent = "SELECT * FROM $fetched_section WHERE `trusted` = 1 AND title LIKE '".$query."%' And content LIKE '".$query."%' ORDER BY `title` ASC LIMIT 0, 10";$resultcontent = mysql_query($sqlcontent) or die(mysql_error());
while($row = mysql_fetch_array($resultcontent)){
echo 'we are here';
echo $row['id'];
echo $row['content'];
}
}
else
echo 'non text';
Why don't you try this. Since, you are using fetch_array.
while($row = mysql_fetch_array($resultcontent)){
$id = $row["id"];
$content = $row["content"];
echo ".$id.";
echo ".$content.";
don't know, if it will work. Might as well try.