Jump to content

[SOLVED] Query to retrieve two letter names...


Germaris

Recommended Posts

Hi there !

 

I maintain a database of former students (more than 32000 entries).

I wish to build a query to retrieve in lastName field all and only the two letter names it contains.

Something like:

$query =mysql_query ("SELECT school, lastName, firstName, promo, region, gone FROM $table WHERE lastName LIKE XXXXXX ORDER BY lastName, firstName, school, promo" )

 

What should I write where the XXXXXX are?

 

Sorry to be somehow... stupid!

:)

 

And many thanks in advance for your help!

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.