SELECT * FROM course limit 1"); if ($result->num_rows > 0) { while($row = $result->fetch_array()) { $course_ringkasan = $row["ringkasan"]; } } $result = $conn->query("SELECT * FROM housing limit 1"); if ($result->num_rows > 0) { while($row = $result->fetch_array()) { $housing_ringkasan = $row["ringkasan"]; } } $result = $conn->query("SELECT * FROM facility limit 1"); if ($result->num_rows > 0) { while($row = $result->fetch_array()) { $facility_ringkasan = $row["ringkasan"]; } } $result = $conn->query("SELECT * FROM membership limit 1"); if ($result->num_rows > 0) { while($row = $result->fetch_array()) { $member_ringkasan = $row["ringkasan"]; } } $result = $conn->query("SELECT * FROM dev limit 1"); if ($result->num_rows > 0) { while($row = $result->fetch_array()) { $dev_ringkasan = $row["ringkasan"]; } } $getSlider = "SELECT * FROM slider"; $result = $conn->query($getSlider); if($result->num_rows > 0){ $getSlider = array(); while($row = $result->fetch_array()){ $getSlider_arr = array( 'id' => $row['id'], 'judul' => $row['judul'], 'teks' => $row['teks'], 'ringkasan' => $row['ringkasan'] ); array_push($getSlider, $getSlider_arr); } } ?> Black Rocks Golf