DarkPrince2005 Posted December 6, 2012 Share Posted December 6, 2012 Hi everyone I would like to know if anyone has ever successfully been able to display a TinyMCE editor in a while loop? It only displays the first loop, and not the second while ($row = $stmt->fetch(PDO::FETCH_ASSOC)) { echo '<form method="post" style="margin-top:20px;"><table> <tr> <td>Content Name</td> <td><input type="hidden" name="idwidget" value="'.$row["id"].'" /><input type="text" name="name" value="'.$row["content_name"].'" /></td> </tr> <tr> <td>Content</td> <td><textarea id="mcecontent" class="mcecontent" name="mcecontent" rows="15" cols="80">'.$row["content"].'</textarea></td> </tr> <tr> <td>Active</td> <td>'; if($row["active"] == "1"){ echo '<input type="checkbox" name="active" checked="checked" />'; } else { echo '<input type="checkbox" name="active" />'; } echo '</td> </tr> </table>'; } It is suppose to display for mcecontent textarea. Quote Link to comment https://forums.phpfreaks.com/topic/271666-tinymce-in-while-loop/ Share on other sites More sharing options...
Beeeeney Posted December 6, 2012 Share Posted December 6, 2012 What second loop? Quote Link to comment https://forums.phpfreaks.com/topic/271666-tinymce-in-while-loop/#findComment-1397803 Share on other sites More sharing options...
trq Posted December 6, 2012 Share Posted December 6, 2012 id's are meant to be unique. Your question is not php related. Quote Link to comment https://forums.phpfreaks.com/topic/271666-tinymce-in-while-loop/#findComment-1397805 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.