| $dir = $row_DetailRS1['ID'];
if(!is_dir("images/$dir")) /* does folder not exist? */
{
/* make the directory if it does not exist*/
mkdir("images/$dir", 0777);
chmod("images/$dir", 0777);
}
$fd = opendir("images/$dir");
while($entry = readdir($fd)) {
/* this section for the thumbnailed images */
if(preg_match("/thumb\.(jpg|gif|png)$/i",$entry)) { /* search for *_thumb.jpg and select */
$entryfull = str_replace("_thumb.jpg",".jpg",$entry); /* replacing _thumb.jpg with .jpg */
$entryfull = str_replace("_thumb.JPG",".JPG",$entryfull); /* replacing _thumb.jpg with .jpg */
$entryfull = rawurlencode($entryfull);
echo "";
echo " "; $fd = opendir("images/$dir"); while($entry = readdir($fd)) { /* this section for the text links. */ if(preg_match("/thumb\.(jpg|gif|png)$/i",$entry)) { } elseif(preg_match("/\.(jpg|gif|png)$/i",$entry)) { $entrytext = preg_replace("/\.jpg$/i","",$entry); echo ""; echo "$entrytext"; echo " - \n"; } } closedir($fd); ?> |
ID | 644 |
| Year | 1970 | |
| Make | Ford | |
| Model | Torino | |
| Bodystyle | GT | |
| Engine | 351 V8 Cleveland 4V | |
| Trans | auto | |
| VIN | OR35M163534 | |
| Price | $54,900 | |
Genuine Torino GT with original factory options, For full list of options check Marti Report New parts fitted prior to shipping 1) all new interior including full seat kit ,carpet, headliner etc 2) all new exhaust 3) new fuel tank 4) new mags and tyres instock now |
||
