Unstoppable Domains

[PHP] Adding Data to a Sortable Table

Spaceship Spaceship
Watch

webfreak

VIP Member
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.
Unstoppable DomainsUnstoppable Domains
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
•••
Dynadot — .com Registration $8.99Dynadot — .com Registration $8.99

We're social

Unstoppable Domains
Domain Recover
DomainEasy — Zero Commission
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back