data array type int this- type true text this- text this- testRes data

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
$data = array(
'type' => (int)($this->d['type']== "true")?1:0,
'text' => $this->d['text'],
);
$this->testRes($data);
$this->test = 1;
$a = $this->updateData('company_feedback',array('company_id'=>$this->d['id'], 'user_id' => $this->uid),$data,1);
Дає результат
<pre>Array
(
[type] => 0
[text] => test update messages
)
</pre>ru<br>UPDATE company_feedback SET text = 'test update messages' WHERE company_id=' 103' AND user_id=' 2284' LIMIT 1 <br><pre>Array
(
[en] => Resource id #1
[ru] => Resource id #2
)
</pre>1
Чогось втрачається поле type