comment je peut recuperer l'id situé dans le tableau $id_img
>>$id_img['id'] retourne une exception :
"Undefined index: id"
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9 $id_img = DB::select('select id from sliderImages where imageLink= ?', array($link)); Show::create(array( 'name'=>Input::get('name'), 'description'=>Input::get('description'), 'state'=>Input::get('state'), 'slider_id'=>$id_img['id'], //<<<<< 'episode_id'=>'0' ));
Partager