I bought a script with the following code:
$red_replace['recent_blogs_index'] = "";
$load_blog = red_load_while("recent_blogs_index");
$blog_query = red_sql_query("journal","`user`,`id`,`title`","WHERE `user` != '' ORDER BY `time` DESC LIMIT 0,5");
while ($b6 = red_sql_fetch( $blog_query ))
{
$red_replace['recent_blogs_index'] .= red_while($load_blog,array(
'BLOG_IMAGE' => uimage($b6['user'],"20",7,"style=\"vertical-align:top;\" onmouseover=\"showInfo('".$VAR[0]."/".newpics($b6['user'])."');\" onmouseout=\"return nd();\""),
'BLOG_TEXT' => $b6['title'] ? ShortenText($b6['title'],"30","","25","",1) : $red_lang['untitled'],
'BLOG_USER' => $b6['user'],
'BLOG_LINK' => red_links("blog","view",$b6['id']),
));
}
red_sql_free($blog_query);
$counts = 0;
$show_total = $VAR[4] ? 4 : 8;
What I want is to make a variable from that so I can place it in a heredoc <<<HTML HTML; on a php page. Can't figure out how to do it. 🙁