Yii Framework Forum: [Tanya]Tipe Data Terbaca 1.0 Di Ms.sql - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

[Tanya]Tipe Data Terbaca 1.0 Di Ms.sql Rate Topic: -----

#1 User is offline   user_yii 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 12
  • Joined: 13-November 13

Posted 04 February 2014 - 06:19 AM

Halo agan agan, mau tanya dikit dong,

ane buat aplikasi yii pake DB MS.SQL neeh,
ane buat satu tabel (tabel POST) dengan field id = Int,
nah yg aneh itu setiap selesai create sebuah pos, yii meRedirect ke view id dengan koma nol
mis: id 2.0, pdahal yang tersimpan di DB nya 2

contoh Input
Posted Image

input berhasil, tapi redirct ke view 2.0
Posted Image

klo ".0" pda url view secara manual, data tetap tmpil
Posted Image

Tersimpan di DB:
Posted Image

Tipe Data :
Posted Image

kira - kira knapa ya Gan bisa terjadi hal seperti itu,
mohon pencerahannya para Master....Terimkasih.
0

#2 User is offline   dst34m 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 70
  • Joined: 07-November 12

Posted 11 February 2014 - 10:23 AM

mmm knp harus pake ".0" d belakangnya?

setau q kalau mau kyk gtu di bikin coding autonumber dengan format yg di sesuaikan..
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users