• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Image not update(in database image update blank value)

#4
[eluser]Rocky Mehta[/eluser]
yes yes yes i got it i take a variable and set the value then in view page i take form_hidden and pass the hidden field value and my image update is successfully saved.
thank x for help me sir.
controller page:
Code:
$data['mchair_id']['value']=$query['chair_id'];
$data['chair_type']['value'] = $query['chair_type'];
$data['chair_image']['value']= $query['chair_image'];
$data['imagehidden']['value'] = $query['chair_image'];
view page:
Code:
<td colspan="2">
&lt;?php echo form_upload('userfile',$chair_image['value']);
       echo form_hidden('prev_image_name',$imagehidden['value']);
?&gt;
thank x once again CodeIgniter


Messages In This Thread
Image not update(in database image update blank value) - by El Forum - 02-29-2012, 03:04 AM
Image not update(in database image update blank value) - by El Forum - 02-29-2012, 03:33 AM
Image not update(in database image update blank value) - by El Forum - 02-29-2012, 03:59 AM
Image not update(in database image update blank value) - by El Forum - 02-29-2012, 05:21 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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