I have a column of data from an SQL database which I am calling through PHP. I wish to convert these results in to a consecutive string. So, it's a case of converting the result (consisting of a series of strings from the columns) in to a string.
How would I go about this?
At the moment, when I print the data using
while($row = mysqli_fetch_array($result))
{
echo $row['title'];
echo "<br>";
}
it returns each item, but I wish to place these items into a string.
Thanks