cs1h Posted May 12, 2008 Share Posted May 12, 2008 Hi, I have a script that gets some results from a database and then shows the results in an print statement. But the problem is that I need to put some more php into the statement. Does anyone know how to do this? The statement is, print "<div id='comment'> <img src='/avatar/".$row["avatar"]."' width='56' height='56' class='comment_photo' /> <div id='comment_header'><span class='comment_author'> {$CommAuth[$i]} </span><span class='comment_wrote'>wrote...</span><span class='comment_stars'><'echo "pullRating($rating_id,false,true,true)";'></span></div> <div class='comment_text'>{$Comment[$i]}</div> <div id='comment_footer'><span class='comment_delete'>Report | Comment on {$CommAuth[$i]} Profile | Message {$CommAuth[$i]}</span></div> </div>"; The piece of php I need to put in is the section <'echo "pullRating($rating_id,false,true,true)";'> Can anyone help? Thanks, Colin Link to comment https://forums.phpfreaks.com/topic/105255-help-with-echo-statement/ Share on other sites More sharing options...
jaymc Posted May 12, 2008 Share Posted May 12, 2008 <? echo pullRating($rating_id,false,true,true); ?> Link to comment https://forums.phpfreaks.com/topic/105255-help-with-echo-statement/#findComment-538929 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.