Witam!
mam takie male pytanie. dlaczego mi dziwnie sortuje tabele? tzn od 0 -9 idzie okej alej jak dana pozycja ma 10 i wiecej to idzie na sam dol zamiast na gore
oto fragment skryptu:
##### SORT
if($total != 00){
for($i = 00; $i < $total; $i++)
{
$line = explode("||", $file[$i]);
if (strlen($line[0]) == 6) { $count = "0" . $line[0]; }
if (strlen($line[0]) == 5) { $count = "00" . $line[0]; }
if (strlen($line[0]) == 4) { $count = "000" . $line[0]; }
if (strlen($line[0]) == 3) { $count = "0000" . $line[0]; }
if (strlen($line[0]) == 2) { $count = "00000" . $line[0]; }
if (strlen($line[0]) == 1) { $count = "000000" . $line[0]; }
$array[] .= "$count||$line[1]||$line[2]||$line[3]||$line[4]||$line[5]||$line[6]||$line[7]||$l
ne[8]||$line[9]||$line[10]||$line[11]||n";
}
rsort($array);
}
#####
---------------------------------
Gdzie
#####
/* KEY
$votes = $split[0]
$hits = $split[1]
$date = $split[2]
$site_name = $split[3]
$site_address = $split[4]
$password = $split[5]
$email_address = $split[6]
$webmaster_name = $split[7]
$site_description = $split[8]
$banner_address = $split[9]
$banner_width = $split[10]
$banner_height = $split[11]
*/
--------------------------------
ponizej adres skryptu:
http://starbuck.boo.pl/kino/list.php3
jesli ktos moglby mi pomoc, to bylbym wdzieczny.
Pozdrawiam