[ create a new paste ] login | about

Link: http://codepad.org/WOFU8Gv3    [ raw code | output | fork ]

PHP, pasted on Sep 24:
1
2
3
4
5
6
7
8
9
10
11
12
<?php
$inquiry_info='DEFAULT';
$data = array(
                'id_category_id' => $inquiry_info['id_category'],
                'id_type' => $inquiry_info,
            );

            $this->db->insert('Inq_Detail', $data);
            $last_id = $this->db->insert_id();
// O/P
UPDATE `Inq_Detail` SET `id_category_id` = '6319', `id_type` = 'DEFAULT' WHERE `id_id` = '7' 
?>


Output:
1
2

Parse error: syntax error, unexpected '`' on line 11


Create a new paste based on this one


Comments: