Good Day,
I have a page where the list of data taken from the db are being fetched in an array. Here's the code:
<table width="100%">
<thead>
<tr>
<th>Name:</th>
<th>Address:</th>
<th>Birthday:</th>
</tr>
</thead>
$samp=mysql_query("select * from client order by id asc");
$counter=0;
while($row=mysql_fetch_array($samp))
{
$id = $row['id'];
$name = $row['name'];
$address = $row['address'];
$birthday = $row['birthday'];
if($counter%2)
{
?>
<tbody>
<tr id="<?php echo $id; ?>">
<?php } else { ?>
<tr id="<?php echo $id; ?>">
<?php } ?>
<td>
<span class="text"><?php echo $id.". ".$name; ?></span>
</td>
<td>
<span class="text"><?php echo $address; ?></span>
</td>
<td>
<span class="text"><?php echo $birthday; ?></span>
</td>
<tr>
<!--and so on -->
</tbody>
I saw this reference Live Search Jquery and have tried if this will gonna work with my program. But much to my surprise it only appears to work for the pre-defined values. But when I tried to use it to my table which has the this Live Search didn't work.
Too bad, since this reference is what am really trying to achieve. Since it already searches for the words without waiting for the user to complete his/her search. Anyone who has an opinion?