Home New Works Old Works Contact Us Bookings
Welcome To
Harris Paintings
'20150118' ORDER BY painting_id ASC"; $result = mysqli_query($conn, $query); return $result; } // This is a counter function that essentially starts the slides at slide count=0 function make_slide_indicators($conn) { $output = ''; $count = 0; $result = make_query($conn); // While $result (11 lines prior) is executing while($row = mysqli_fetch_array($result)) { // If condition set inside of the while loop which creates a data target, a bootstrap tool that dictates which html element should be changed if($count == 0) { $output .= '
  • '; } else { $output .= '
  • '; } // All of the above changes our count, so whenever a condition is executed it adds 1 to our counter (which is just the slide counter) $count = $count + 1; } return $output; } // another function that is responsible for displaying the images as well as the image information function make_slides($conn) { $output = ''; $count = 0; $result = make_query($conn); while($row = mysqli_fetch_array($result)) { if($count == 0) { $output .= '
    '; } else { $output .= '
    '; } $output .= ' '.$row[
    '; // The output is our image (filename) row that corresponds to a filename within our desktop file $count = $count + 1; // Adds to count per image loaded } return $output; } ?>

    New Works: