I am looking at your errors and I am thinking the way you set up your database does not reference the variables defined in your code. You have to modify your code to reflect the variables you set up in your database.
Here is my database SQL structure. Try this and see if she works:
Create database domaintrader;
Use domaintrader;
CREATE TABLE domains (
ID int(15) NOT NULL auto_increment,
domains text NOT NULL,
domainDate date DEFAULT '0000-00-00' NOT NULL,
price varchar(20) NOT NULL,
PRIMARY KEY (ID)
);
#
# Dumping data for table 'domains'
#
INSERT INTO domains VALUES ( '1', 'Ladieswear.ca', '2003-02-15', '$25.00 CDN');
INSERT INTO domains VALUES ( '2', 'Childrenswear.ca', '2003-02-15', '$25.00 CDN');
INSERT INTO domains VALUES ( '3', 'ProTeamSportswear.com', '2003-02-15', '$25.00 USD');
INSERT INTO domains VALUES ( '4', 'ProTeamApparel.com', '2003-02-15', '$25.00 USD');
INSERT INTO domains VALUES ( '5', 'TellCanada.com', '2003-02-15', '$25.00 USD');
INSERT INTO domains VALUES ( '8', 'SportswearOnly.com', '2003-02-15', '$25.00 USD');
INSERT INTO domains VALUES ( '9', 'ProTeam.ca', '2003-02-15', '$25.00 CDN');
INSERT INTO domains VALUES ( '10', 'Comet.ca', '2003-02-15', '$45.00 CDN');
INSERT INTO domains VALUES ( '11', 'Comet.us', '2003-02-15', '$45.00 USD');
INSERT INTO domains VALUES ( '12', 'SurreyBritishColumbia.com', '2003-02-15', '$25.00 USD');
for example: in your errors they reference undefined variables...to me this means that the server is tying to find the values that the variables hold but they do not technically exist in your database structure and therefore nothing at all is returned and things break down....
Register globals off: Not sure actually. I am running PHP Version 4.1.1 only and if memory serves me...php version 4.2.x plus has these off by default....so I am not sure.
I do know the code works though. It may be buggy cause I am kinda new to all this too but you can test it out at my site:
See it in action
If you need more help I will try to help you out here in the forum.
By the way the default sort order is defined to be by domain name in the code...so how could it resort by domain name when it already is sorted that way by default?
By clicking on the table column headers you are overriding the default sort criteria. I believe it is still working correctly...
look at my working example above and let me know if this helps or hinders...