Im Moment habe ich speichern Informationen über Objekte in einer Datenbank abzurufen und sie in eine HTML-Tabelle laden mit PHP, wie unten dargestellt:Wie große Mengen von Bildern zu speichern, mit html
<?php $con=mysqli_connect("localhost:8889","root","root","booksmart_properties");
// Check connection
if (mysqli_connect_errno())
{
echo "Failed to connect to MySQL: " . mysqli_connect_error();
}
else{
echo "we connected";
}
if(isset($_POST['submit']))
{
$university = $_POST['university'];
$rent = $_POST['rent']; // i assumed that you name the second Select tag RENT and the Third ROOMTYPE and the last DISTANCE
$roomtype = $_POST['roomtype'];
$distance = $_POST['distance'];
}
// Perform queries
$result=mysqli_query($con,"SELECT * FROM ListedProperties
WHERE PropertyType ='$roomtype' ");
echo "<table border='1'>
<tr>
<th>PropertyType</th>
<th>Description</th>
<th>Rent Price</th>
<th>Location</th>
</tr>";
while($row = mysqli_fetch_array($result))
{
echo "<tr>";
echo "<td>" . $row['PropertyType'] . "</td>";
echo "<td>" . $row['Description'] . "</td>";
echo "<td>" . $row['RentPrice'] . "</td>";
echo "<td>" . $row['Location'] . "</td>";
echo "</tr>";
}
echo "</table>";
mysqli_close($con);
?>
aber ich frage mich, wie Ich wäre in der Lage, einen Image-Server einzurichten, um eine große Anzahl von Bildern zu speichern, so dass ich für jede Eigenschaft eins referenzieren und ein Bild davon in den Ergebnissen und in einer bestimmten Größe anzeigen kann.