• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2019 MyBB Group.