Jump to content

Alphabetize without 'The'


MikeDXUNL

Recommended Posts

right now my query is:

 

mysql_query("SELECT * FROM videogames WHERE type='$type' AND gamename LIKE '$letter%' ORDER BY gamename ASC") or die(mysql_error());

 

 

is there a way I can exclude 'The' at the beginning of a title. and put it at the end?

 

I.E {

 

Grand Theft Auto IV

Halo 3

Incredible Hulk, The

 

}

 

then when the user clicks on the "I" link, Incredible Hulk will show up there instead of in the "T" link

Link to comment
https://forums.phpfreaks.com/topic/114961-alphabetize-without-the/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.