Jump to content

help with echo statement


cs1h

Recommended Posts

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

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.