7/06/2009
image in php
<?php $conn=mysql_connect("localhost","root",""); $mystr=mysql_select_db("data",$conn) or die("loi"); $qs="select * from images"; $result=mysql_query($qs)or die('loi'); $a=1; echo("<table border='5px' width='800'>"); echo("<tr>"); while($row=mysql_fetch_array($result)) { echo("<td align='center'>"); echo("<img src='".$row['link']."' width='150' height='100px'>"); echo("</td>"); if($a%4==0){ echo("</tr><tr>"); } $a=$a+1; } echo("</tr>"); echo("</table>"); ?>
Subscribe to:
Post Comments (Atom)
List
Profiles Information
About me : Nothing is 1 vài thứ - 1985
Places I've Lived : I ♥ Hà Nội
Home Page : http://www.shimivn.blogspot.com/
Think : 1:1000000000
Languages spoken : Vietnamese,English.
Mobile : sony C2305 ♥ ♥
dell : i3-Ram 3GB- HDD 250GB . ♥♥♥
Places I've Lived : I ♥ Hà Nội
Home Page : http://www.shimivn.blogspot.com/
Think : 1:1000000000
Languages spoken : Vietnamese,English.
Mobile : sony C2305 ♥ ♥
dell : i3-Ram 3GB- HDD 250GB . ♥♥♥
No comments: