On 13/12/2007, booking2heaven <[EMAIL PROTECTED]> wrote:

> @market_budget = [[BMW5,  2007-12-26,  30000], [BMW3, 2007-12-31,
> 150000], [HONDA1, 2007-12-19, 10000], [HONDA2, 2007-12-31, 10000],
> [JAGUAR5, 2007-12-28, 50000], [JAGUAR11, 2007-12-18, 70000]]

maksud saya kalau Anda membuat aplikasi ini dari scratch kenapa Anda
tak mendesign table Anda seperti ini:

market_budgets
id
item
price

i don't know which field goes to which name actually and whether that
integer should be in USD or so, whatever works, you name it better
than me la ya cos you're the programmer :-) atau apakah anda memiliki
alasan tertentu mengapa anda tak mendesign application anda macam saya
tadi?

> Setelah disimpan di kolom tabel bertipe data text (kolom 'budget
> list'), hasilnya seperti ini pada kolom table.
>
> ---
> - - 101
>   - BMW5
>   - 2007-12-26
>   - 30000
> - - 102
>   - BMW3
>   - 2007-12-31
>   - 150000
> - - 22
>   - HONDA1
>   - 2007-12-19
>   - 10000
> - - 23
>   - HONDA2
>   - 2007-12-31
>   - 10000
> - - 26
>   - JAGUAR5
>   - 2007-12-28
>   - 50000
> - - 27
>   - JAGUAR11
>   - 2007-12-18
>   - 70000
>
> Sekarang saya ingin memanggil kembali isi kolom badget list kedalam
> bentuk HASH @market_budget seperti semula/seperti dibawah ini.
>
> @market_budget = [[BMW5,  2007-12-26,  30000], [BMW3, 2007-12-31,
> 150000], [HONDA1, 2007-12-19, 10000], [HONDA2, 2007-12-31, 10000],
> [JAGUAR5, 2007-12-28, 50000], [JAGUAR11, 2007-12-18, 70000]]
>
> Tolong Bantu Saya, Apa yang harus saya lakukan di Controller atau
> Modelnya. Terima Kasih Banyak Atas pertolongannya.
>
> Riand


-- 
Arie | http://linkedin.com/in/ariekeren | http://profile.to/ariekeren/
http://ariekusumaatmaja.wordpress.com | http://groups.yahoo.com/groups/id-ruby

Kirim email ke