ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hi all i'd like to ask you to give me a simple text editor script. I mean something like the one we use to post here or simpler cause all i need is the text manipulation. I'm using php with mysql and i store the text in a field. Do i need anymore fields for the format? Thank you.
thx i'll give it a shot, but i'd really appreciate it if someone could give me the php script, cause i'm really interested in learning how this is done.
Or do you want to create a webpage with a text input field and a button and when you click the button it writes the text in a database? If so, search for a PHP/MySql tutorial.
I've made a couple of basic ones before, all following the same basic idea: Search the input string for different pre-defined things (such as \n) and replace it with what you want stored (such as <br />). If I could dredge up the code I used, I might give you an example, but basically you just need some search & replace functions. Look up ereg, and various other regular expression functions.
thx i'll give it a shot, but i'd really appreciate it if someone could give me the php script, cause i'm really interested in learning how this is done.
It's pretty good filled with features and you can configure to remove features as well. The one I got running is not a 100% up to the task. Mainly because the html the wyzz creates messes up parts of the web page it's not supposed to. I haven't figured out a way to solve that, if you come into that problem and figure out a way to solve that issue (maybe by using div tags, or something) let me know.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.