我有一个表单,我想进行更新。在更新页面中,我还想向用户显示
当前值。从数据库获取值并将其放入占位符没有问题。但是,当我单击按钮时,占位符中的所有值都
变成了NULL。我想要这个问题的支持。不管怎么说,还是要谢谢你。
查看:
PARAMETERS prmLon IEEEDouble, prmLat IEEEDouble, prmWithinKm IEEEDouble;
SELECT * FROM
(
SELECT BBQ2.ID, BBQ2.lon, BBQ2.lat, BBQ2.poi_name,
GreatCircleDistance([prmLat],[prmLon],[lat],[lon],True,False) AS km
FROM BBQ2
)
WHERE km <= [prmWithinKm];
控制器:
<form method="post" action="<?=base_url()?>Personel/personel_duzenle_kaydet/<?=$pr_edit_data[0]->Id?>"">
<div class="form-group">
<label for="">T.C. Kimlik No</label>
<input name="tc_kimlik" type="text" class="form-control" placeholder="<?=$pr_edit_data[0]->tc_kimlik?>" >
</div>
<div class="form-group">
<label for="">Personel Ünvanı</label>
<select name="unvan" class="form-control" >
<option><?=$pr_edit_data[0]->unvan?></option>
<option>Pazarlama</option>
<option>Şef</option>
<option>Marangoz</option>
<option>Dekor Elemanı</option>
<option>Teknik Ekip</option>
</select>
</div>
<div class="form-group">
<label for="">İşe Başlama Tarihi</label>
<input name="is_tarihi" type="text" placeholder="<?=$pr_edit_data[0]->is_tarihi?>" data-mask="99-99-9999" class="form-control">
</div>
<button style="float: right" type="submit" class="btn btn btn-primary"><i class="fa fa-pencil"></i> PERSONELİ KAYDET </button>
</form>