Jump to content

Tinymce In While Loop


DarkPrince2005

Recommended Posts

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.

Link to comment
https://forums.phpfreaks.com/topic/271666-tinymce-in-while-loop/
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.