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

Popular posts from this blog

linux - Mailx and Gmail nss config dir -

c# - Is it possible to remove an existing registration from Autofac container builder? -

php - Mysql PK and FK char(36) vs int(10) -