Collection Index
connect_error) {
die("Connection failed: " . $conn->connect_error);
}
// Print from DB
$sql = "SELECT title, link, image, img_alt FROM iron_collection";
$result = $conn->query($sql);
if ($result->num_rows > 0) {
// output data of each row
echo '
'; // DIV for first row ( a code segment enters a DIV after each four items, last row close hard coded)
while($row = $result->fetch_assoc()) {
echo '
';
echo '
';
echo '
';
echo '

';
echo '
';
echo '
';
$row_i = $row_i + 1; // Count rows
if (($row_i % 4) == 0) { // If a fourth row has been made
echo "
"; // Close the DIV for that row
echo '
'; // Open new row
}
}
echo "
"; // Close DIV for final row
} else {
echo "Nothing here, please check back later!";
}
$conn->close();
?>
I enjoy collecting old iron, as you can see above. I love finding this old equipment and restoring it to working condition.
One of my favorite parts of this hobby is putting this equipment to use.
I am a member of GAMTRA, which puts on Cotton Ginning Days each fall.
I set up a display at the wood sawing area each year.
The members of this club have been very helpful to me in learning antique engines, and I'm forever thankful for them.