Jump to content

[SOLVED] help concat strings


jmurch

Recommended Posts

 

I am trying to select a group of records from a database and concatonate the results to a string. The start and end strings will be static but the string(s) between are from an array. Does anyone have a suggestion on the best way to approach this?

 

 

 

while ($row = mysql_fetch_assoc($content)) {

    $id = $row['id'];

    $text = $row['text'];

}

 

 

$full_string = "start".$array_contents."end"

 

 

Thanks

Link to comment
https://forums.phpfreaks.com/topic/73581-solved-help-concat-strings/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.