Jump to content
TonikCapGajah2013

Tutorial Dreamweaver 8 (php&mysql)

Recommended Posts

PINDA REKOD (Update Record)

Fail yang terlibat > editdata.php

Klik 2 kali fail editdata.php untuk membuat langkah seterusnya.

Dalam fail editdata.php;

1. Buat 1 Table (2 row, 5 colum)

Masukkan label dalam row 1 (ID, CategoryID ----- Price)

2. Buat Recordset.

Bind Recordset ke dalam Table dalam row 2

3. Buat Repeat Region (highlight row 2)

4. Buat link ke fail confirmupdate.php

Save fail editdata.php

809604dw8-5.jpg

Rajah 1: Fail editdata.php

=====================

Fail confirmupdate.php

Recordset

1. Buatkan fail confirmupdate.php dan buka untuk edit.

2. Buat recordset (Window > Bindings), klik (+) dan pilih Recordset.

3. Dalam tetingkap Recordset;

Name: rsUpdate

Connection: connStore

Table: tblestore

Column: All

Filter: id dan =

URL Parameter: recordID

Sort: None

OK

Masih lagi dalam fail confirmupdate.php

Update Server Behaviors

1. Guna Application bar (sebelah atas)

2. Klik Update form wizard

3. Connection: connStore

4. Table to update: tblestore

5. Select record from: reStore

6. Unique key: id

7. After updating: index.php

8. OK.

nape jadi cmni?

pastu bile tekan update xde pe2 berlaku..data lame xupdate gk..nape yek?kat mane silap aku?

update.jpgconpemdelet.jpg

Share this post


Link to post
Share on other sites
[quote]sebab gambar tu dalam hosting yang telah tamat tempoh. [/quote]

Sebab tu aku lg suka buat tutorial dlm bentuk pdf... Hohoho... Edited by dans kam

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...