User Profile
Collapse
-
If you are still having problems, try using " instead of the quotations marks. -
I am a complete idiot. I was putting the code outside my while loop! Eeesh!
Thank you very much for all of your patience. I had been working on all of this for two whole days with very little sleep. I guess I have learned my lesson that sleep, while time consuming, is quite useful. Thanks again!Leave a comment:
-
Yes, the code worked when I placed it as is. However, when I tried to plug in "$body" which is the field I am aiming to work with, it produced blank results. Here is my code. there are two pages needed. stories.php lists all records in the table and when you click on the "Edit" button you are directed to stories_update. php which will be the edit page for whichever item you select.
[PHP]
// stories.php...Leave a comment:
-
I am using PHP 5.1.5
It still isn't working for me. Is there a special spot it needs to be placed in the code or does it matter that I'm pulling the text from a SQL database (longtext)?Leave a comment:
-
That is what I thought since it made sense just to use the same method to switch it back, but the new variable (ex: $new_string) appears to be blank when I try to print it to the page. Is there a secret to where this code needs to be placed?...Leave a comment:
-
Converting <br/> to \n and Back Again (Textarea)
I'm working on a site where my client will be able to maintain some of the text on the site using input boxes and such driven by PHP and MySQL. The problem I am running into is making it easy for them to enter text into a textarea and have it automatically format the "<br/>" tags from their return strokes ("\n" in the textarea). I know how to convert the \n's to "<br/>" when a new item is added into the...
No activity results to display
Show More
Leave a comment: