boat_id] = $rec; } if (is_array($aListings) && !empty($aListings)) { $key = array_rand($aListings); $value = $aListings[$key]; $c = count($aListings); foreach ($aListings as $k => $v) { $descr = $v->description; $len = strlen($descr); $textclean = 50; if ($len > $textclean) $descr = substr($descr, 0, $textclean) . ' . . . '; $web_loc = $v->web_loc; $q2 = "SELECT * FROM classf_pics WHERE broker_id = 66 AND boat_id=$k AND web_loc!='' ORDER BY pic_id ASC"; $r2 = mysqli_query($dbh2, $q2); while ($rec2 = mysqli_fetch_object($r2)) { $web_loc = $rec2->web_loc; if ($web_loc) break; } $price = $v->price; $price_type = $v->price_type; if ($price_type == 1) $price = 'SOLD'; elseif ($price_type == 2) $price = 'DEAL PENDING'; elseif (!intval($price)) $price = 'CALL FOR PRICE'; else $price = '$' . number_format($price); if (!$web_loc) $web_loc = 'images/boat-image-placeholder.jpg'; else $web_loc = str_replace("http://www.zeccomarine.com", "", $web_loc); $c--; break; // Assuming you want to break after processing the first listing } } mysqli_close($dbh2); @require('_start.php'); ?> zecco

 Employment

Employment

num_rows > 0) { while ($rec = $r->fetch_object()) { ?>

job_title) ?>

job_descriptionCOPY) ?>

No open positions at this time, please check back later