Yes I did all what you suggested !

tried all value carrieres and none has a value
as well tried print_r($line);  and it gives me the last random line number
from 10 random line numbers displayed already if I use $line
The sdcript dosn't grab the line only  the random numbers are ready
Can somebody  expierenced give advice please, so I can display listed value
carrierers.


// Code start

$i = 0;
$fp = fopen ("./../../cgi-bin/Classifieds/data/ads.data", "r");
while($tmp= fgetcsv($fp,50000,"\|")) { $array[]=$tmp; }
fclose ($fp);
$rand_array=array_rand($array, 10);

foreach($rand_array as $line) {
    list($adnr, $user, $date, $listed, $hlong, $eins, $zwei, $drei, $vier,
$usern, $locst, $locstaa, $locc, $funf, $sech, $email, $Url, $ClassCat,
$ClassCat2, $Headstart, $Headend, $Descrip, $End1, $Endzwei, $End3,
$Endvier, $Endfunf, $Endsech, $Endsieben, $Endacht, $Endne, $dreizwei,
$dreidrei, $dreivier, $dreifunf, $dreisechs ) = ($content);

echo " <font face=\"Verdana\" size=\"1\"><a
href=\"../../cgi-bin/Classifieds/classifieds.cgi?session_key=&search_and_dis
play_db_button=on&db_id=$adnr&query=retrieval\" target=\"_blanko\">$Endzwei
$End3 </a><br>$line</font>";
}

// Code end



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to