Dynadot Aftermarket: discover domain gems worth investing in. Visit our aftermarket.

[PHP] Adding Data to a Sortable Table

SpaceshipSpaceship
SpaceshipSpaceship
Namecheap AuctionsNamecheap Auctions
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
Close
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
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
Close
DomainEasy: flexible LTO options. Close more domain deals with financing.

We're social

Escrow.com
Spaceship
Domain Recover
CryptoExchange.com

NamePros updates

Switch between accounts
You can now stay logged in to more than one NamePros account in the same browser. Click your avatar, then "Accounts in this browser", to...
AIVikings
Catchy
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back