Jump to content

omerjerk

New Members
  • Posts

    6
  • Joined

  • Last visited

Posts posted by omerjerk

  1. I have a text field in a form like this ... <textarea rows="10" cols="150" name="content"></textarea>

     

    I am using PHP to store the entered text into the MySql database ...

    It is working fine but when I echo the value from the MySQL database onto the webpage , all the text comes up in a single line ...

    Means if I entered 3 lines in the text area and save it to database , then by echo from they arey are not coming into three separate lines ...

     

    How get rid of this problem ...???

  2. function object2file($dir, $object) {
     file_put_contents(rtrim($dir, '\/') . DIRECTORY_SEPARATOR . get_class($object) . '.obj', serialize($object));
    }

     

    OK ... thanx... It worked fine now ...

     

    And the second question is that can't it append the data .,... It is writing the whole file again deleting the previous fie ..

×
×
  • 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.