Einzelnen Beitrag anzeigen
Alt 02.09.2002, 20:07   #2
käptn
Inventar
 
Registriert seit: 04.11.2001
Alter: 45
Beiträge: 2.150


Standard

Ungetestet, aber vielleicht lässt sich was draus machen:

PHP-Code:
$sql "SELECT * FROM " $db;
$abfrage mysql_query($sql);

if(
mysql_num_rows($abfrage)) {
  while(
$row mysql_fetch_assoc($abfrage)) {
   
$first[]    = str_rot13($row['teil1']);
   
$second[]    = str_rot13($row['teil2']);
  }
}

$my_temp array_flip($first);
ksort($my_temp);

foreach (
$my_temp as $k)
{
    
$my_first[]    = $first[$k];
    
$my_second[]    = $second[$k];

HTH

~
____________________________________
LOL - Mein erstes Post im Programmier Forum

MACINTOSH - Most Applications Crash, If Not The Operating System Hangs
käptn ist offline   Mit Zitat antworten