How do i echo all array elements in a single line whitout line breaks on every itteration though the array?
This is the code i was able to come up with but it prints every element on a new line.
while($row = mysql_fetch_assoc($result))
{
echo '<h3> Some text'. $row['user_name'] . '</h3>';
}
h3is a block element. You can make it display in line by not usingh3(usespanmaybe) or styling it to be inline:CSS: