Dynadot โ€” .com Transfer

[PHP] Adding Data to a Sortable Table

Spacemail by SpaceshipSpacemail by Spaceship
Watch
Impact
61
I'm looking for the easiest way to build a table and generate a script to sort it. I want to add information to the rows and have it sortable by column (asc/desc).

Sort of like NameCheap's table here:
http://www.namecheap.com/domain-pricing.asp?pricefor=register
(yes, I know that's ASP)

It would be great if I could easily add data via forms to a MySQL database which would pick up all the information.

I am not an expert in PHP, so I would appreciate any guidance. Thank you!
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
AfternicAfternic
EDIT:

I have just seen your request again, and as it seems you are not currnetly using a mysql database, making the edit below will do no good. PM me with more information on what data you want stored and I will be able to create a basic script for you that you can edit to your needs.

Easy;

PHP:
$query  = "SELECT * FROM example1 ORDER BY example2 asc";

Where example2 is the colum and asc can be desc depending.

Regards,
Richard.
 
Last edited:
0
•••
CatchedCatched
Escrow.com
Spaceship
Rexus Domain
CryptoExchange.com
Domain Recover
CatchDoms
NameMaxi - Your Domain Has Buyers
DomDB
  • The sidebar remains visible by scrolling at a speed relative to the pageโ€™s height.
Back