hasmilia 0 Report post Posted May 24, 2006 ASC... Quote Share this post Link to post Share on other sites
hasmilia 0 Report post Posted May 29, 2006 (edited) kenapa kalu saya run sql statement ni dia x paparkan ikut turutan...$sqldb = "SELECT harga,tempoh FROM $noSebutHarga ORDER BY harga";input 22 111 55 333output yg keluar(slh)1112233355 output sepatutnye2255111333ada sesape yg leh bantu x?? Edited May 29, 2006 by hasmilia Quote Share this post Link to post Share on other sites
ejoe 0 Report post Posted May 29, 2006 22,111,55,33t tu semua dlm field harga ke?try 'SELECT harga,tempoh FROM $noSebutHarga ORDER BY harga ASC'pastu 'SELECT harga,tempoh FROM $noSebutHarga ORDER BY harga DESC'cuma kame sure "ORDER BY harga" filed yg betul kita nak sort... Quote Share this post Link to post Share on other sites
hasmilia 0 Report post Posted May 29, 2006 (edited) ha'ah dia dlm field harga...sy da try da mcm yg ejoe suh...tapi still xboleh...bila tukar kpd DSC...output dia jd553332211 Edited May 29, 2006 by hasmilia Quote Share this post Link to post Share on other sites
ejoe 0 Report post Posted May 29, 2006 ish pelik tutry sort guna field lain jadi tak cam 'SELECT * FROM namatable ORDER BY tempoh'or field lain Quote Share this post Link to post Share on other sites
hasmilia 0 Report post Posted May 29, 2006 ermm still xbole jgk... Quote Share this post Link to post Share on other sites
ejoe 0 Report post Posted May 29, 2006 field harga tu jenis ape?vachar? char? int? Quote Share this post Link to post Share on other sites
hasmilia 0 Report post Posted May 29, 2006 (edited) ermm jenis varchar...patut la xdpt...anyway tq ya ejoe...jasa mu akan d kenang Edited May 29, 2006 by hasmilia Quote Share this post Link to post Share on other sites