![]() |
include all php code in a variable // eval() 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: PHP Code: echo ""; while($comm = mysql_fetch_array($comquery)) { $commuserid = $comm['USERID']; $commusername = $comm['USERNAME']; $commtimeadded = $comm['time_added']; $comment = $comm['comment']; echo ""; echo " $commusername"; echo "$commtimeadded"; echo ""; echo ""; echo "$comment"; echo ""; } echo ""; 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 |
| الساعة الآن 09:02 AM |
Powered by vBulletin® Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.5.2 TranZ By
Almuhajir