Post Reply 
Help with textarea in html
i must know how to
Author Message
Pirata Nervo
NervOS Developer

Posts: 699.4765
Threads: 39
Joined: 20th Jun 2007
Reputation: -0.79225
E-Pigs: 19.2466
Offline
Post: #1
Help with textarea in html
can someone help me with it please?

everything is ok and its working perfectly, im just trying to add breakline in the textarea but i don't know how.
this is my php code to update the table:

PHP Code:
$this->db->query("UPDATE ".TABLE_PREFIX."users SET items='".$this->mybb->user['items']."'
'".$this->db->escape_string($itemarray['name'])."',
money=money-".intval($itemarray['price'])." WHERE uid='".intval($this->mybb->user['uid'])."'");


between this '".$this»mybb»user['items']."' and '".$this»db»escape_string($itemarray['name'])."' must be something and <br> won't work as its a textarea... can someone help me please?


(This post was last modified: 10/11/2007 03:03 PM by Pirata Nervo.)
10/11/2007 03:02 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Anger
Angered Observer (0).(0)

Posts: 605.8490
Threads: 4
Joined: 14th Apr 2007
Reputation: 1.65651
E-Pigs: 5.4993
Offline
Post: #2
RE: Help with textarea in html
tried <p>
?

Always remember - Google is your friend :)

[Image: avatar_416_482669e4.jpg]
(This post was last modified: 10/11/2007 04:36 PM by Anger.)
10/11/2007 04:35 PM
Find all posts by this user Quote this message in a reply
Pirata Nervo
NervOS Developer

Posts: 699.4765
Threads: 39
Joined: 20th Jun 2007
Reputation: -0.79225
E-Pigs: 19.2466
Offline
Post: #3
RE: Help with textarea in html
no i didnt but im almost sure that it won't work

10/11/2007 04:46 PM
Visit this user's website Find all posts by this user Quote this message in a reply
diego
poof

Posts: 7,826.1659
Threads: 264
Joined: 22nd Jun 2007
Reputation: 1.80067
E-Pigs: 37.4012
Offline
Post: #4
RE: Help with textarea in html
I don't think <P> would work since I used to use that as for my text and not <br>

but go ahead and try it. . . no harm

[Image: cce6aa9e-c40c-4ae7-aebe-d7780d6fc009.gif]
10/11/2007 04:47 PM
Find all posts by this user Quote this message in a reply
ZiNgA BuRgA
Smart Alternative

Posts: 17,022.2988
Threads: 1,174
Joined: 19th Jan 2007
Reputation: -1.71391
E-Pigs: 446.1274
Offline
Post: #5
RE: Help with textarea in html
For textareas, you just put a normal new line.

Use the \n character in PHP strings.
10/11/2007 05:30 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Anger
Angered Observer (0).(0)

Posts: 605.8490
Threads: 4
Joined: 14th Apr 2007
Reputation: 1.65651
E-Pigs: 5.4993
Offline
Post: #6
RE: Help with textarea in html
ahh there ya go - the expert speaks :P i was just speculating myself, however it should have occured to me that you could just add a regular newline as it is just a standard textbox like you get in vb (DOH).

Always remember - Google is your friend :)

[Image: avatar_416_482669e4.jpg]
10/11/2007 07:21 PM
Find all posts by this user Quote this message in a reply
ZiNgA BuRgA
Smart Alternative

Posts: 17,022.2988
Threads: 1,174
Joined: 19th Jan 2007
Reputation: -1.71391
E-Pigs: 446.1274
Offline
Post: #7
RE: Help with textarea in html
Lol Anger.  It wouldn't have taken you long anyway :P
http://www.google.com.au/search?q=how+to...=firefox-a

It's just that I've been dealing with this stuff a bit recently.  If I hadn't, I'd be clueless as well XD

Ahh, these little things with languages.  I get pissed off at Java cause I'm not aware of these little things.
10/11/2007 07:43 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Pirata Nervo
NervOS Developer

Posts: 699.4765
Threads: 39
Joined: 20th Jun 2007
Reputation: -0.79225
E-Pigs: 19.2466
Offline
Post: #8
RE: Help with textarea in html
thanks zinga that should work !

11/11/2007 03:56 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Anger
Angered Observer (0).(0)

Posts: 605.8490
Threads: 4
Joined: 14th Apr 2007
Reputation: 1.65651
E-Pigs: 5.4993
Offline
Post: #9
RE: Help with textarea in html
well noone can claim to know everything. :P its a pretty cool coincidence that you have been working with them recently, and i should remembered my saying, google is my friend. :P

Always remember - Google is your friend :)

[Image: avatar_416_482669e4.jpg]
11/11/2007 05:56 AM
Find all posts by this user Quote this message in a reply
Pirata Nervo
NervOS Developer

Posts: 699.4765
Threads: 39
Joined: 20th Jun 2007
Reputation: -0.79225
E-Pigs: 19.2466
Offline
Post: #10
RE: Help with textarea in html
i did not try it yet as my site is down for some reason :P but i will post results if I'm able to.

11/11/2007 06:33 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


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

 Quick Theme: