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: #16
RE: Help with textarea in html
Pirata Nervo Wrote:

PHP Code:
"'".intval($mybb->mybb->user['items'])."' \n\n '".$this->db->escape_string($itemarray['name'])."' \n '".$this->db->escape_string($itemarray['download'])"'"

Uhh, erm...
The thing is, that's not a string.
You're putting the newline characters, outside of the string, which makes no sense.
(also, double quoting, wrong PHP syntax etc etc)

Try this:

PHP Code:
1
2
3
4
5
6
7
global $mybb;
$items_array = array (
    "items" => intval($mybb->user['items'])."\n\n".$this->escape_string($itemarray['name'])."\n".$this->escape_string($itemarray['download']),
    "money" => intval($mybb->user['money'])." - ".intval($itemarray['price']),
);
$where_items = "uid='".intval($mybb->user['uid'])."'";
$this->update_query(TABLE_PREFIX."users", $items_array, $where_items);

Note that I'm presuming the code sample exists within /inc/db_mysql(i).php - that is, $this represents the $db object.

(This post was last modified: 13/11/2007 04:42 AM by ZiNgA BuRgA.)
13/11/2007 04:39 AM
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 - 13/11/2007 04:39 AM

Forum Jump:


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

 Quick Theme: