Jump to content

[SOLVED] Query Help


ballouta

Recommended Posts

Hello

 

This is the begining of a code that displays the first letter of members in a table...

<?php
$query = "SELECT SUBSTRING(`usernme`,1,1) as letter FROM `members` GROUP BY letter";
?>

Actually this code is working fine BUT now i need to query all members names beining with a speicific letter/number.

For example, If i press on letter m, i want to display all members names begiging with letter m.

 

Please help

 

Thank You

Link to comment
https://forums.phpfreaks.com/topic/161996-solved-query-help/
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.