/ Published in: PHP
Get an A-Z index from MySQL query. Link only letters where there are matches.
Expand |
Embed | Plain Text
$query = "SELECT DISTINCT UPPER(LEFT(LNAME,1)) as letters FROM $table ORDER BY letters"; $letter_string .= $row["letters"]; } } foreach ($letter_array as $letter) { }
You need to login to post a comment.
