Follow along with the video below to see how to install our site as a web app on your home screen.
Бележка: This feature may not be available in some browsers.
<img src="./images/'.$imagename.'.jpg" />
<?php
function add_images() {
if (!($link = @mysqli_connect('localhost','user','pass'))) {
echo('SQL error ' . mysqli_connect_errno() . '#: ' . mysqli_connect_error());
return false;
}
if (($result = @mysqli_query($link, 'SELECT `img_name` from `images`',MYSQLI_STORE_RESULT))
=== FALSE) {
echo('SQL error ' . mysqli_errno($link) . '#: ' . mysqli_error($link));
return false;
}
while ($row = @mysqli_fetch_row($result) {
echo "<img src=\"./pics/{$row[0]}.jpg\" />\r\n";
return true;
}
?>
<!DOCTYPE>
<html>...
<?php add_images(); ?>
...</html>