salam...sy nk mntk tlg kak2 n abg2 cmne nk display image kt php...sy dah wat coding display tp imge 2 xkuar...cmne erk???
die kuar mcm nie
[img][img=https://2img.net/r/ihimizer/img202/6442/pic3s.th.jpg][/img]
- Code:
<?php
$db = mysql_connect("localhost","root","");
if (!mysql_select_db('uji'))
die('Error selecting Database!');
$result = mysql_query("SELECT * FROM food");
echo
"<table class=mediumtxt width=590 border=1 align=center >";
echo "<tr><td><b>image</b></td><td><b>title</b></td>
<td><b> Description</td></tr>";
while ($myrow = mysql_fetch_array($result)) {
echo "<tr><td>";
echo "<img src='".$myrow["image"]." />";
echo "</td><td>";
echo $myrow["title"];
echo "</td><td>";
echo $myrow["description"];
echo "</td><td>";
}
echo "</table></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
";
?><b></body>
die kuar mcm nie
[img][img=https://2img.net/r/ihimizer/img202/6442/pic3s.th.jpg][/img]