php - Separator in my results -


this query works fine me, gets results , echos them back. missing , can not work separator in between results. have tried use implode function unable to. "|" in between results in echo. below code using, or direction appreciated.

$dbh = mysqli_connect("xxxxxxxxxxx", $user_name, $password, $database_name); if (!$dbh) {     die("not connected : " . mysqli_error($dbh)); } else {     $query = "select value `$table_name` field in('$field1', '$field2')";     $result = mysqli_query($dbh,$query);       if (mysqli_num_rows($result) == 0) {     echo "no_data_found";      }      else     {     while ($result_list = mysqli_fetch_array($result, mysql_assoc))     echo '' .$result_list["value"] . '';     }     mysqli_close($dbh);                         } ?> 


Comments

Popular posts from this blog

php - render data via PDO::FETCH_FUNC vs loop -

c++ - OpenCV Error: Assertion failed <scn == 3 ::scn == 4> in unknown function, -

The canvas has been tainted by cross-origin data in chrome only -