Hi All,

Hope all is well... I'm having a problem with a while loop... from what I can see it all looks fine... I have a piece of javascript running within the PHP code that basically when its clicked is to show a textarea and it is to do this for each record in my table. I've put the code in below... any help would be great.

Thank you

PHP Code:
while ($rowc mysql_fetch_array($resulta)) {
                                                                    
                                                                
                             echo 
'<div id="profile_pic"/><a href="member-profile.php?member_id=' $rowc['member_id'] . '"/><img src="'.$rowc['profile_pic'].'" width="64" height="64" alt="" /></a></div>';
                            echo 
'<div id="profile_holder">';
                            echo 
'<div id="profile_info"><p><strong><a href="member-profile.php?member_id=' $rowc['member_id'] . '"/>' $rowc['firstname'] . ' ' $rowc['lastname'].'</a></strong> says '.$rowc['shared_deal'].'</p><br /></div>
            
                            <p><a href="#" onclick="document.getElementById(\'textHolder\').style.display=\'block\';" >Comment</a> | <a href="">Recommend</a></p>
                            <div id="textHolder" style="display:none;">
                            <form name="" method="POST" action="member-index.php?member_id='
.$_SESSION['SESS_MEMBER_ID'].'">
                            <input type="hidden" name="member_id" valiue="'
.$_SESSION['SESS_MEMBER_ID'].'"/>
                            <input type="hidden" name="firstname" value="'
.$_SESSION['SESS_FIRST_NAME'].'"/>
                            <input type="hidden" name="lastname" value="'
.$_SESSION['SESS_LAST_NAME'].'"/>
                            <input type="hidden" name="deal_id" value="'
.$rowc['deal_id'].'"/>
                            <textarea rows="14" name="comment_text" cols="5" class="comment_area" placeholder="Enter Your Comment"></textarea>
                                                       <input type="submit" name="comment" value="Comment" />
                            </form>
</div>'
;
                            echo 
'</div>'