Post Reply 
Help with textarea in html
i must know how to
Author Message
ZiNgA BuRgA
Smart Alternative

Posts: 17,022.2988
Threads: 1,174
Joined: 19th Jan 2007
Reputation: -1.71391
E-Pigs: 446.1274
Offline
Post: #12
RE: Help with textarea in html
Well, firstly, the SQL query is just, erm, totally wrong...  I don't know what you're trying to do.

Are you trying to update the table with $itemarray?
MyBB has an update function for that...

PHP Code:
for($i=0;$i<count($itemarray);$i++)
$itemarray[$i] = $this->escape_string($itemarray[$i]);

$this->update_query(TABLE_PREFIX."users", $itemarray);

I don't know where you want to place the new line, so I cannot help you there.

Also, I believe the MySQL table's field must be set to TEXT, as opposed to VARCHAR to accept newlines... (not certain though).

12/11/2007 07:08 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Messages In This Thread
Help with textarea in html - Pirata Nervo - 10/11/2007, 03:02 PM
RE: Help with textarea in html - Anger - 10/11/2007, 04:35 PM
RE: Help with textarea in html - diego - 10/11/2007, 04:47 PM
RE: Help with textarea in html - Anger - 10/11/2007, 07:21 PM
RE: Help with textarea in html - Anger - 11/11/2007, 05:56 AM
RE: Help with textarea in html - ZiNgA BuRgA - 12/11/2007 07:08 PM

Forum Jump:


User(s) browsing this thread: 2 Guest(s)

 Quick Theme: