Welcome Guest, Not a member yet? Register   Sign In
Php Syntax not working on this line
#2

(12-10-2017, 04:22 AM)Redwoodcutter Wrote:
PHP Code:
public function Picture_Upload($id){
 
       
             $data
["$id"]=$id;
 
            $this->load->view('admin\add_products_picture',$data);
    }
.............. 

          

Use
Code:
$data["id"]=$id;

instead of
Code:
$data["$id"]=$id;

And then the template will have your id variable.
Reply


Messages In This Thread
RE: Php Syntax not working on this line - by ZoRg - 12-10-2017, 10:26 AM



Theme © iAndrew 2016 - Forum software by © MyBB