Moderators: macek, egami, gesf

<html>
<head>
<title>test</title>
<body>
<a href="image_view.html"><img src="images/50868449.jpg" width="100" height="100"></a>
</body>
</head>
</html>
<html>
<head>
<title>test</title>
<body>
<img src="images/50868449.jpg">
</body>
</head>
</html>

<html>
<head>
</head>
<body>
<?php
//do your query and then set the image to the result of the query you wanted to doing your SQL database
$imageurl=$query_result; // Set $query_result to the name of the variable you set to the result.
$height = 150;//height per image;
$width = 150; //width per image;
echo "<img src='".$imageurl."' height='".$height."' width='".$width."'></img>";
?>
</body>
</html>










Return to PHP coding => Images
Users browsing this forum: No registered users and 2 guests