Hughesy1986 Posted February 2, 2007 Share Posted February 2, 2007 Hi, I am making a news system with just using file functions. Now what i want to do is get the files contents and show them in a text area but not as code as how it looks on the page. Is this possible? Thanks Glen Quote Link to comment Share on other sites More sharing options...
Orio Posted February 2, 2007 Share Posted February 2, 2007 I dont think so. But this has nothing to do with php anyways. Orio. Quote Link to comment Share on other sites More sharing options...
richardw Posted February 2, 2007 Share Posted February 2, 2007 Take a look at Tiny MCE http://tinymce.moxiecode.com/ I use it frequently in forms to show formtted text in a textarea. "TinyMCE is a platform independent web based Javascript HTML WYSIWYG editor control released as Open Source under LGPL by Moxiecode Systems AB. It has the ability to convert HTML TEXTAREA fields or other HTML elements to editor instances. " Quote Link to comment Share on other sites More sharing options...
Hughesy1986 Posted February 3, 2007 Author Share Posted February 3, 2007 Thanks alot ill check it out! Glen Quote Link to comment Share on other sites More sharing options...
marcus Posted February 3, 2007 Share Posted February 3, 2007 Well other than what richardw said you could easily do a SQL query to select data from your table and just echo it out into a textarea. $sql = "SELECT * FROM `profile` WHERE `id` ='$id'"; $res = mysql_query($sql) or die(mysql_error()); $row = mysql_fetch_assoc($res); echo "<textarea rows=30 cols=30>$row[profile_text]</textarea>\n"; just a quick simple example if you're using a database Quote Link to comment Share on other sites More sharing options...
Orio Posted February 3, 2007 Share Posted February 3, 2007 @mgalforever- That's exactly what he doesn't want... get the files contents and show them in a text area but not as code as how it looks on the page. Orio. Quote Link to comment 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.