Php Syntax not working on this line |
So I'm new here i now that because of this basic problem, once hi everyone and thats my problem in php framework in codeigniter.
I'm using Netbeans ide and wamp server. this is my controller codes I'm have a database like Id Picture Profile and more. so i put in data in database and i want to uptade my Picture coloumn like this. PHP Code: public function Picture_Upload($id){ here is my Database_model PHP Code: public function update_data($tablo,$data,$id){ and this is the form of all of this. PHP Code: <?php this is all to my codes so now i cant get to id like this action="<?=base_url()?>admin/product/Save_Picture/<?=$id?>" browser give me error like that : A PHP Error was encountered Severity: Notice Message: Undefined variable: id Filename: admin/add_product_picture.php Line Number: 20 and i can not get it to image id so i cant uptade to data base but the picture comes from to uploads file so database not updating. there are still empty. when i was write to <?php $id ?> there is a no error around but so still i cant get to id and name of image in database. if you know and tell me i will thanks a lot for this. thanks for helping or trying to this if you want i can share my code in github. i'm student of computer engineering in Turkey, and sorry for my Bad English.
(12-10-2017, 04:22 AM)Redwoodcutter Wrote: So I'm new here i now that because of this basic problem, once hi everyone and thats my problem in php framework in codeigniter. $data["$id"]=$id; to $data["id"]=$id;
thanks a lot problem is solved i cant see that.
and guys dont write to kod while you are sleeping |
Welcome Guest, Not a member yet? Register Sign In |