|
![]() |
#1 |
Member
Join Date: Aug 2005
Location: UK
Posts: 34
|
![]()
I read about the difficulties Marjolein had with 'ORDER BY' yesterday, only to run into a similar problem of my own this morning! I just happened to check the small ads page at http://www.drascombe-association.org.uk/smallads.htm and found that it wasn't showing any results from the database. After an hour or so of hair-tearing I discovered that I could get the results to display again by removing the 'ORDER BY' statement from the following query:
Code:
$Query = "SELECT *, DATE_FORMAT(adate, '%D %M %Y') AS displaydate FROM $TableName1 AS t1, $TableName2 AS t2 WHERE t1.boattype = t2.type AND t1.sold='no' AND t1.adate >= '$LastDanDate' ORDER BY t1.adate DESC"; I suspect strongly - and I'm awaiting confirmation - that my hosting provider has done a version upgrade. The old pages still work on my test server, which is running MySQL 3.23.49, while the production server is running MySQL 4.1.18. It seems to be the fact that I'm querying more than one table which breaks it. Can anyone spot a problem with my query, or suggest a workaround? __________________ Regards Tim |
![]() |
![]() |
Thread Tools | |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Back woes | ktinkel | The Corner Pub | 13 | 11-16-2006 02:58 PM |
Firefox woes | Franca | General Publishing Topics | 3 | 06-28-2006 01:24 PM |
Firefox woes | CarlSeiler | The Corner Pub | 5 | 04-01-2006 02:39 PM |
Email woes | LoisWakeman | The Corner Pub | 27 | 03-31-2006 12:34 PM |