dellee69 Posted February 6, 2010 Share Posted February 6, 2010 Please forgive me for not knowing this already. I have a database setup that I made, what I want to do is simply be able to type html code into a text area on one PHP page and save it via a database some way and it will display the html on another PHP page (not the code but as an html page) I have managed to do this already but it won't display the html, it just shows the code and text etc. I need to be able to add pictures in etc,. and have it all viewable on another page. I guess this is the same as you would do from an admin panel kind of like a cms? Any help or tutorials would be very helpful, I have been searching for a week with nothing really explaining this. Thanks. Quote Link to comment https://forums.phpfreaks.com/topic/191184-simple-echo-text-from-database/ Share on other sites More sharing options...
meomike2000 Posted February 6, 2010 Share Posted February 6, 2010 so what you are saying is that you enter html into a form, save that in a database and then from another page you get the html from the database and display it?????? is my thinking correct Quote Link to comment https://forums.phpfreaks.com/topic/191184-simple-echo-text-from-database/#findComment-1008034 Share on other sites More sharing options...
dellee69 Posted February 6, 2010 Author Share Posted February 6, 2010 well I am not sure what the best way is, maybe this will help. I want to do this with PHP and MySql. I have made a website and on the front page I want to be able to change the information such as text and some pictures, I want to be able to do this via a hidden page (password protected etc.) I need to be able to create a page using html and have it display on that sites front page but as of now it shows all the code, it does not display the output of the html in a page form, what should I do? Any clue? tutorial? Thanks. Quote Link to comment https://forums.phpfreaks.com/topic/191184-simple-echo-text-from-database/#findComment-1008037 Share on other sites More sharing options...
wildteen88 Posted February 6, 2010 Share Posted February 6, 2010 Looks like you're doing something wrong in your code. Post you code here Quote Link to comment https://forums.phpfreaks.com/topic/191184-simple-echo-text-from-database/#findComment-1008042 Share on other sites More sharing options...
dellee69 Posted February 6, 2010 Author Share Posted February 6, 2010 Here are the files. [attachment deleted by admin] Quote Link to comment https://forums.phpfreaks.com/topic/191184-simple-echo-text-from-database/#findComment-1008053 Share on other sites More sharing options...
dellee69 Posted February 6, 2010 Author Share Posted February 6, 2010 I posted the files because I was not sure what code to post, my display code or my code where I save the text to be displayed? Thanks. Quote Link to comment https://forums.phpfreaks.com/topic/191184-simple-echo-text-from-database/#findComment-1008057 Share on other sites More sharing options...
dellee69 Posted February 7, 2010 Author Share Posted February 7, 2010 I am guessing if nobody on this site can answer this simple question I am most likely not going to learn much here. Thanks anyway. Quote Link to comment https://forums.phpfreaks.com/topic/191184-simple-echo-text-from-database/#findComment-1008452 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.