ajax - $string is not showing up in php search -
just got ajax/php search issue link not showing on search page. echo results showing $string isn't.
thanks help.
//echo $query; $result = mysqli_query($link, $query); $string = ''; if($result){ if(mysqli_affected_rows($link)!=0){ while($row = mysqli_fetch_array($result,mysqli_assoc)) { echo '<p> <b>'.$row['title'].'</b> '.$row['post_id'].'</p>' ; $string .= "<p><a href='set-detail.php?recordid=".$row['post_id']."'>".$row['title']."</a></p>"; } } else { echo 'no results :"'.$_get['keyword'].'"'; }
i don't see echo $string
. if put echo command in there $string
may begin work.
Comments
Post a Comment