Greetings,
I have a search feature that search key words within my database and returns records. My issue is it will only return one record. I have searched specifically for each record and it will return each but not when I keyword both.
I believe my multiple keyword search code is right, but I think my code for displaying all rows has an issue.
Any help to point me in the right direction is appreciated.
*fyi, the data that does display is correct.
<?php.....
$count=$dbo->prepare($query);
$count->execute();
$no=$count->rowCount();
if($no > 0 )
{echo "No of records = ".$no."";
?>
<?php foreach ($dbo->query($query) as $row);?>
<tr bgcolor="#FFFFFF">
<td width="26%"><span class="result"><img src="Images/<?php echo $row[Businessr]; ?>"></span></td>
<td width="16%"><span class="result"><a href="<?php echo $row[name]; ?>">View Video</a></span></td>
<td width="58%"><span class="result"><?php echo $row[sub]; ?></span></td>
</tr> </table>
<?php
}
}
else {
echo " No records found ";
}