CodeIgniter Forums

Full Version: Insert() method question of the database class
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum


I am inserting comments in to a listing I am writing. I'm using the Active Record method insert. I'm trying to figure out the best way to reserve or convert \n to <br>.

When data is posted this is what I see when I output the data from the database:


Hello, this is really coool!



Hello, this is really cool! -Phybertek

Any ideas on the best way to input this data or output it?

public function comment_add()    

    // Insert into comments    
    redirect('list/event/' . $_POST['id'], 'location');

} //end comment_add
Even this post on this forum doesn't respect tabs.. How can you do this?

El Forum

does this help?

El Forum

Yes it does buddy! :-)



El Forum


btw if you put your code in

[ code ]
[ /code ]

tags in the forum your tabs will appear in the code.

El Forum

:-) Nice to know.. hehehehhe..!