Hello, Im trying to show my images with a limit of 2 but the while loop show the codes correctly in the source on the browser but the items are not showing on the web page..
How can i fix this issues...
HERE is the codes
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Sayfalama</title>
<link href="style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<?php
$host = "localhost";
$data = "lgmsevze_sunbrite";
$pass = "";
$user = "root";
$db = mysql_connect ($host, $user, $pass);
mysql_select_db($data, $db);
$query = "SELECT * FROM lgmsevze_sunbrite.webtemps LIMIT 0, 2";
$sql = mysql_query($query);
?>
<ul>
<?php
while ($item = mysql_fetch_array($sql))
{
echo "<li><img src='localhost/sbd/".$item['image']."'></li>";
}
?> </ul>
</body>
</html>