As I work with this more, I'm beginning to think it is more of a memory problem in that maybe when there are too many records, the computer can't create the alphabetical listing because it runs out of memory. Does this sound like a feasible issue to anyone? If so, how might I go about solving this problem? I've already attempted to remove the sort from the query itself (found in the above code), sorting the fetched array afterwards and then cycling through with an each(). The code is changed as follows:
$alpha_result = sql_query("select title from ".$prefix."_links_links where cid = $cid", $dbi);
//Get title array
$title_array = mysql_fetch_array($alpha_result);
//Run sort on title array
sort($title_array);
reset($title_array);
echo "<center>";
while (list($key, $val) = each($title_array)) {
$title = stripslashes($val);
$title_first_letter = substr($title,0,1);
if ($title_first_letter != $last_printed) {
while ($title_first_letter != $alphabet[$i]) {
Unfortunately, it's still producing similar results (meaning, it's messed up some other things, but the main "non display" problem still exists.) Any ideas?