RC Drag Cars of Louisiana

[insert_php]
$thisClub=3;

$dir = ‘site_dragtrac/carImage’;

$scanned_directory = array_diff(scandir($dir), array(‘..’, ‘.’));
shuffle($scanned_directory);

# print_r($scanned_directory);

foreach ($scanned_directory as $value)
{ $memberNumber=substr($value,0,-4);
$memberInfoA=mysql_fetch_array(mysql_query(“SELECT racerFirst,racerLast,clubNumber from rcdrlc5_dragtrac.racers where racerNumber=’$memberNumber’ limit 1”));
$forClub=$memberInfoA[2];
list($width, $height, $type, $attr) = getimagesize(“$dir/$value”);
if ($width>$height) { $specify=’ width=”325″ ‘; }
elseif ( $height>$width) { $specify=’ height=”250″ ‘; }
else { $specify=’ width=”350″ ‘ ; }

if ($forClub==$thisClub)
{ $output[$forClub].=”


$memberInfoA[0] $memberInfoA[1]
“;
}
}

ksort($output);echo ”;
foreach ($output as $key=>$value)
{ echo $value;
}

[/insert_php]

Web Statistics