Hi.
I'd like to include a large PHP code into a single variable. So I can use that variable in Styles & Templates >> Templates
here's my PHP codes:
i want to express it by $vcomment. that means when i put $vcomment on a template, it'll show the result of those codes.
i google it & found that it might possible with eval() function. but i cant do that myself. if so, can anyone plz write me the eval code of those php code ...plz
I'd like to include a large PHP code into a single variable. So I can use that variable in Styles & Templates >> Templates
here's my PHP codes:
PHP Code:
echo "<table>";
while($comm = mysql_fetch_array($comquery))
{
$commuserid = $comm['USERID'];
$commusername = $comm['USERNAME'];
$commtimeadded = $comm['time_added'];
$comment = $comm['comment'];
echo "<tr>";
echo "<td rowspan='2' align='center'><a href='member.php?u=$commuserid'><img src='image.php?u=$commuserid' width='50' /><br>$commusername</a></td>";
echo "<td width='100%' align='right'><font size='2'>$commtimeadded</font></td>";
echo "</tr>";
echo "<tr>";
echo "<td height='100%'>$comment</td>";
echo "</tr>";
}
echo "</table>";
i google it & found that it might possible with eval() function. but i cant do that myself. if so, can anyone plz write me the eval code of those php code ...plz
Comment