hi,
can someone lead me to a online tutorial where i can learn how to retrieve data from mysql database and display the data in this way described below.
i've a table "company profile". It has the following fields/columns in it:
company name, address, website, postal code, country, state, city, country telephone code, country city code, telephone number, country telephone code, country city code, fax number, business license number, company description, company history, .......
If i were to display all the fields at once, there are simply too much fields that it can't fit into the normal screen width for easy viewing.
I want to display all/most of the fields in the table horizontally on the screen without exceeding the screen width.
I've seen other website doing it this way:
eg. i'm now at the "Company" TAB, i should see these fields:
+++++++++++---------------------
| Company | Contacts | History |
+++++++++++--------------------------------------------------------------------------
| id | Company name | Website | Business license | Company description | others |
| 01 | ABC PTE LTD | www.ABC.com | 123456W | ABC is a company... | ... |
| 02 | DEF PTE LTD | www.DEF.com | 456789E | DEF is a company... | ... |
| 03 | GHI PTE LTD | www.GHI.com | 876543A | GHI is a company... | ... |
....
....
....
<<- <- 1 2 3 4 5 -> ->> Display 5 records in a page
eg. if i click on the "Contacts" TAB, i should see these fields:
note:
- the webpage did not refresh!
- the "street A" is the address of the ABC company (1st record)!
- each column/field is able to sort (a-z, z-a, 0-9, 9-0...), if i sort any column here in this TAB, all records in other TAB should also move accordingly. (eg. i sort country code, "065" should be now on the top, if i go back to "Company" TAB, id 03 should also be on the top.)
- the column sorting is only sorting data of that "display" page, eg. page 1 data column sorting and not page 5 data become page 1 data...
----------++++++++++++----------
| Company | Contacts | History |
----------++++++++++++------------------------------------------------------------------------
| Address | Postal code | Country code | City code | telephone number | Fax number | others |
| street A| 123456 | 01 | 022 | 123 456 | 123 457 | ... |
| Block A | 234566 | 02 | 0322 | 6532 4561 | 6532 4552 | ... |
| No. 12A | 546546 | 065 | 07 | 451 3456 | 451 123 | ... |
....
....
....
<<- <- 1 2 3 4 5 -> ->> Display 5 records in a page
eg. if i click on the "History" TAB, i should see these fields:
note:
- the webpage did not refresh!
- the "setup in 1980.." is the history of the ABC company (1st record)!
---------------------+++++++++++
| Company | Contacts | History |
---------------------+++++++++++-------------
| company history | others | others | others |
| setup in 1980.. | ...... | ...... | ...... |
| ....... | ...... | ...... | ...... |
| ....... | ...... | ...... | ...... |
....
....
....
<<- <- 1 2 3 4 5 -> ->> Display 5 records in a page
pls show me where i can learn how to display data in this way, thank you.
regards,
vang