|
|||
sape tau??
macam mana nak buat sesuatu data tu visible n invisible?contoh,
jika sebuah file mempunyai peminjam, nama fail tersebut akan dikaburkan atau tidak aktif kerana fail tersebut mempunyai peminjam. apabila peminjam tersebut memulangkan fail, nama fail tersebut boleh dipilih atau sudah aktif.. |
|
|||
Quote:
create 1 field dalam table yang ada file name ke? prosesnya nak buat macam mana? ![]() |
|
|||
Quote:
|
|
||||
References:
SQL UPDATE SQL INSERT INTO jika sebuah file mempunyai peminjam, nama fail tersebut akan dikaburkan atau tidak aktif kerana fail tersebut mempunyai peminjam. => When the borrow form is submitted by the borrower, -- Update the book status to be inactive. UPDATE BOOK SET ACTIVE = 0 WHERE BOOK_ID = 1234 AND BORROWER = 'ALI' PHP to execute UPDATE SQL PHP SQL Update Query apabila peminjam tersebut memulangkan fail, nama fail tersebut boleh dipilih atau sudah aktif.. => When the return form is submitted by the borrower, -- Update the book status to be active. UPDATE BOOK SET ACTIVE = 1 WHERE BOOK_ID = 1234 AND BORROWER = '' -- Log the book borrowing history. INSERT INTO BORROW_HISTORY(BOOK_ID, BORROWER, RETURNED_DATE) VALUES (1234, 'ALI', '2007-7-4 04:13:54') PHP to execute INSERT SQL PHP SQL Insert Query MySQL AB :: MySQL 5.0 Reference Manual :: 12.6 Date and Time Functions Date and Time in MySQL 5 |
|
|||
Quote:
|
![]() |
«
Previous Thread
|
Next Thread
»
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| sape tau java..?? | MizFiFA | Website Programming | 2 | 05-04-2007 01:49 PM |
| sape terel ASP.NET? | marisa | Website Programming | 1 | 22-10-2004 08:10 AM |
| sape tau Genetic Algorithm???? | deqnaAryna | Website Programming | 3 | 04-06-2004 04:14 PM |
| ..:: Sape Leh Tolong ::.. | ra3ali | Website Programming | 9 | 26-02-2004 01:25 PM |
| sape terel java swing??? | syudbfv | Mamak Stall | 1 | 23-01-2003 01:38 PM |
All times are GMT +8. The time now is 05:50 PM.
Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.1.0 vBulletin skin by ForumMonkeys.com.
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.1.0 vBulletin skin by ForumMonkeys.com.









Create an additional field/column in the database table, i.e. the Active field.




Linear Mode

